mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 12:39:53 +00:00
Correction of getting spell range "Target".
This commit is contained in:
parent
5fac75845c
commit
56edc1b213
@ -160,7 +160,7 @@ namespace MWMechanics
|
||||
cost1 *= constDurationMultipler;
|
||||
cost2 *= 2;
|
||||
}
|
||||
if(effect->mData.mFlags & ESM::MagicEffect::CastTarget)
|
||||
if(it->mRange == ESM::RT_Target)
|
||||
cost1 *= 1.5;
|
||||
|
||||
float fullcost = cost1+cost2;
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include <string>
|
||||
#include "../mwworld/ptr.hpp"
|
||||
#include <components/esm/effectlist.hpp>
|
||||
#include <components/esm/defs.hpp>
|
||||
#include "../mwbase/world.hpp"
|
||||
#include "../mwbase/environment.hpp"
|
||||
namespace MWMechanics
|
||||
|
Loading…
x
Reference in New Issue
Block a user