mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 22:45:33 +00:00
Don't apply spells to dead actors
This commit is contained in:
parent
b8f5cd6cb7
commit
07251f0fa4
1 changed files with 4 additions and 1 deletions
|
@ -2166,7 +2166,10 @@ namespace MWWorld
|
|||
if (!contact.first.isEmpty())
|
||||
{
|
||||
if (contact.first.getClass().isActor())
|
||||
{
|
||||
if (!contact.first.getClass().getCreatureStats(contact.first).isDead())
|
||||
contact.first.getClass().getCreatureStats(contact.first).getActiveSpells().addSpell(selectedSpell, contact.first, actor, ESM::RT_Touch, sourceName);
|
||||
}
|
||||
else
|
||||
{
|
||||
// We hit a non-actor, e.g. a door. Only instant effects are relevant.
|
||||
|
|
Loading…
Reference in a new issue