mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Don't say voice when using startcombat for a dead actor (Fixes #1542)
This commit is contained in:
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
|
// 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");
|
MWBase::Environment::get().getDialogueManager()->say(ptr, "attack");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user