From fd3fcb461253bb8d269faa90af877e1e3e8b12a8 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 7 Nov 2008 09:36:46 -0600 Subject: [svn] Remove isVisible function. Check stealth and invisible in canAttack(); Use new remove aura by interrupt flag function. --HG-- branch : trunk --- src/game/PossessedAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/PossessedAI.cpp') diff --git a/src/game/PossessedAI.cpp b/src/game/PossessedAI.cpp index cb0fde5c1d6..b66a648294f 100644 --- a/src/game/PossessedAI.cpp +++ b/src/game/PossessedAI.cpp @@ -45,7 +45,7 @@ bool PossessedAI::_needToStop() const if(i_pet.getVictim() == i_pet.GetCharmer()) return true; - return !i_pet.getVictim()->isTargetableForAttack(); + return !i_pet.canAttack(i_pet.getVictim()); } void PossessedAI::_stopAttack() -- cgit v1.2.3