mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Make dispel an instant effect again (Fixes #3695)
This commit is contained in:
parent
80c008906b
commit
eee49b7ea7
1 changed files with 8 additions and 3 deletions
|
@ -613,6 +613,14 @@ namespace MWMechanics
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (target.getClass().isActor())
|
||||||
|
{
|
||||||
|
if (effectId == ESM::MagicEffect::Dispel)
|
||||||
|
{
|
||||||
|
target.getClass().getCreatureStats(target).getActiveSpells().purgeAll(magnitude);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (target.getClass().isActor() && target == getPlayer())
|
else if (target.getClass().isActor() && target == getPlayer())
|
||||||
{
|
{
|
||||||
MWRender::Animation* anim = MWBase::Environment::get().getWorld()->getAnimation(mCaster);
|
MWRender::Animation* anim = MWBase::Environment::get().getWorld()->getAnimation(mCaster);
|
||||||
|
@ -1140,9 +1148,6 @@ namespace MWMechanics
|
||||||
case ESM::MagicEffect::CureCorprusDisease:
|
case ESM::MagicEffect::CureCorprusDisease:
|
||||||
actor.getClass().getCreatureStats(actor).getSpells().purgeCorprusDisease();
|
actor.getClass().getCreatureStats(actor).getSpells().purgeCorprusDisease();
|
||||||
break;
|
break;
|
||||||
case ESM::MagicEffect::Dispel:
|
|
||||||
actor.getClass().getCreatureStats(actor).getActiveSpells().purgeAll(magnitude);
|
|
||||||
break;
|
|
||||||
case ESM::MagicEffect::RemoveCurse:
|
case ESM::MagicEffect::RemoveCurse:
|
||||||
actor.getClass().getCreatureStats(actor).getSpells().purgeCurses();
|
actor.getClass().getCreatureStats(actor).getSpells().purgeCurses();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue