Correction of getting spell range "Target".

actorid
Miroslav Puda 12 years ago
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…
Cancel
Save