aboutsummaryrefslogtreecommitdiff
path: root/src/game/PossessedAI.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-11-07 09:36:46 -0600
committermegamage <none@none>2008-11-07 09:36:46 -0600
commitfd3fcb461253bb8d269faa90af877e1e3e8b12a8 (patch)
tree8c23861b1fc3b14908d1a22c5f491c1aad9d2d21 /src/game/PossessedAI.cpp
parentfdff7330d29eee31d6f7849067d1a68441402370 (diff)
[svn] Remove isVisible function. Check stealth and invisible in canAttack();
Use new remove aura by interrupt flag function. --HG-- branch : trunk
Diffstat (limited to 'src/game/PossessedAI.cpp')
-rw-r--r--src/game/PossessedAI.cpp2
1 files changed, 1 insertions, 1 deletions
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()