mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-18 08:56:10 -04: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
|
//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…
x
Reference in New Issue
Block a user