mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-13 21:40:11 +00:00
Stop AiCombat when the target is dead
This commit is contained in:
parent
42284603f7
commit
c8a9e9f7fa
@ -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…
x
Reference in New Issue
Block a user