Commit c8a9e9f7 authored by scrawl's avatar scrawl

Stop AiCombat when the target is dead

parent 42284603
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment