From 7a9f0a970f4f14afa35b67aeed817244f8f98d35 Mon Sep 17 00:00:00 2001 From: maximius Date: Sat, 10 Oct 2009 23:08:44 -0700 Subject: *Ignore react states in Creature::_IsTargetAcceptable. --HG-- branch : trunk --- src/game/Creature.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src') diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index e2925ff9745..3f461599f60 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -2192,18 +2192,10 @@ bool Creature::_IsTargetAcceptable(const Unit *target) const if (myVictim == target) return true; - // if I'm not aggressive, the target is not acceptable - if (((Creature*)this)->GetReactState() != REACT_AGGRESSIVE) - return false; - // if I'm hostile towards the target, the target is acceptable if (IsHostileTo(target)) return true; - // if the target is passive, the target is not acceptable - if (((Creature*)target)->GetReactState() == REACT_PASSIVE) - return false; - const Unit *targetVictim = target->getAttackerForHelper(); // if the target does not have a victim, the target is not acceptable -- cgit v1.2.3