@ -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