mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 11:09:42 +00:00
Correction of getting spell range "Target".
This commit is contained in:
parent
5fac75845c
commit
56edc1b213
2 changed files with 2 additions and 1 deletions
|
@ -160,7 +160,7 @@ namespace MWMechanics
|
||||||
cost1 *= constDurationMultipler;
|
cost1 *= constDurationMultipler;
|
||||||
cost2 *= 2;
|
cost2 *= 2;
|
||||||
}
|
}
|
||||||
if(effect->mData.mFlags & ESM::MagicEffect::CastTarget)
|
if(it->mRange == ESM::RT_Target)
|
||||||
cost1 *= 1.5;
|
cost1 *= 1.5;
|
||||||
|
|
||||||
float fullcost = cost1+cost2;
|
float fullcost = cost1+cost2;
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "../mwworld/ptr.hpp"
|
#include "../mwworld/ptr.hpp"
|
||||||
#include <components/esm/effectlist.hpp>
|
#include <components/esm/effectlist.hpp>
|
||||||
|
#include <components/esm/defs.hpp>
|
||||||
#include "../mwbase/world.hpp"
|
#include "../mwbase/world.hpp"
|
||||||
#include "../mwbase/environment.hpp"
|
#include "../mwbase/environment.hpp"
|
||||||
namespace MWMechanics
|
namespace MWMechanics
|
||||||
|
|
Loading…
Reference in a new issue