1
0
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:
Miroslav Puda 2013-05-27 12:26:06 +02:00
parent 5fac75845c
commit 56edc1b213
2 changed files with 2 additions and 1 deletions

View File

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

View File

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