forked from mirror/openmw-tes3mp
Stop AiCombat when the target is dead
This commit is contained in:
parent
42284603f7
commit
c8a9e9f7fa
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ namespace MWMechanics
|
|||
//General description
|
||||
if(!actor.getClass().getCreatureStats(actor).isHostile())
|
||||
return true;
|
||||
if(actor.getClass().getCreatureStats(actor).getHealth().getCurrent() <= 0)
|
||||
if (mTarget.getClass().getCreatureStats(mTarget).isDead())
|
||||
return true;
|
||||
|
||||
//Update every frame
|
||||
|
|
Loading…
Reference in a new issue