forked from mirror/openmw-tes3mp
Use spell effect range type, not base effect
This commit is contained in:
parent
1c41ce9b9d
commit
b4f8edc186
1 changed files with 2 additions and 2 deletions
|
@ -177,8 +177,8 @@ namespace MWMechanics
|
|||
|
||||
x *= 0.1f * magicEffect->mData.mBaseCost;
|
||||
x *= 0.5f * (effect.mMagnMin + effect.mMagnMax);
|
||||
x += effect.mArea * 0.05f * magicEffect->mData.mBaseCost; // XXX spell.radius
|
||||
if (magicEffect->mData.mFlags & ESM::MagicEffect::CastTarget) // XXX effect.flags & CAST_TARGET
|
||||
x += effect.mArea * 0.05f * magicEffect->mData.mBaseCost;
|
||||
if (effect.mRange == ESM::RT_Target)
|
||||
x *= 1.5f;
|
||||
|
||||
static const float fEffectCostMult = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("fEffectCostMult")->getFloat();
|
||||
|
|
Loading…
Reference in a new issue