mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 15:36:41 +00:00
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
|
//General description
|
||||||
if(!actor.getClass().getCreatureStats(actor).isHostile())
|
if(!actor.getClass().getCreatureStats(actor).isHostile())
|
||||||
return true;
|
return true;
|
||||||
if(actor.getClass().getCreatureStats(actor).getHealth().getCurrent() <= 0)
|
if (mTarget.getClass().getCreatureStats(mTarget).isDead())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
//Update every frame
|
//Update every frame
|
||||||
|
|
Loading…
Reference in a new issue