forked from mirror/openmw-tes3mp
Merged pull request #1823
This commit is contained in:
commit
78121c1774
1 changed files with 6 additions and 0 deletions
|
@ -766,6 +766,8 @@ namespace MWMechanics
|
|||
|
||||
for (ActiveSpells::TIterator it = spells.begin(); it != spells.end(); ++it)
|
||||
{
|
||||
bool actorKilled = false;
|
||||
|
||||
const ActiveSpells::ActiveSpellParams& spell = it->second;
|
||||
MWWorld::Ptr caster = MWBase::Environment::get().getWorld()->searchPtrViaActorId(spell.mCasterActorId);
|
||||
for (std::vector<ActiveSpells::ActiveEffect>::const_iterator effectIt = spell.mEffects.begin();
|
||||
|
@ -793,10 +795,14 @@ namespace MWMechanics
|
|||
caster.getClass().getNpcStats(caster).addWerewolfKill();
|
||||
|
||||
MWBase::Environment::get().getMechanicsManager()->actorKilled(ptr, player);
|
||||
actorKilled = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (actorKilled)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue