creatureStats.setHitAttemptActor(player);// Stops the guard from quitting combat if player is unreachable
creatureStats.setHitAttemptActorId(player.getClass().getCreatureStats(player).getActorId());// Stops the guard from quitting combat if player is unreachable
// if guard starts combat with player, guards pursuing player should do the same
if(ptr.getClass().isClass(ptr,"Guard"))
{
ptr.getClass().getCreatureStats(ptr).setHitAttemptActor(target);// Stops guard from ending combat if player is unreachable
ptr.getClass().getCreatureStats(ptr).setHitAttemptActorId(target.getClass().getCreatureStats(target).getActorId());// Stops guard from ending combat if player is unreachable
iter->first.getClass().getCreatureStats(iter->first).setHitAttemptActor(target);// Stops guard from ending combat if player is unreachable
iter->first.getClass().getCreatureStats(iter->first).setHitAttemptActorId(target.getClass().getCreatureStats(target).getActorId());// Stops guard from ending combat if player is unreachable