Don't say voice when using startcombat for a dead actor (Fixes #1542)

pull/170/head
scrawl 11 years ago
parent 0b34d8d2fd
commit 320ab1b2c1

@ -1112,7 +1112,7 @@ namespace MWMechanics
}
// Must be done after the target is set up, so that CreatureTargetted dialogue filter works properly
if (ptr.getClass().isNpc())
if (ptr.getClass().isNpc() && !ptr.getClass().getCreatureStats(ptr).isDead())
MWBase::Environment::get().getDialogueManager()->say(ptr, "attack");
}

Loading…
Cancel
Save