*Ignore react states in Creature::_IsTargetAcceptable.

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-10 23:08:44 -07:00
parent 914fccad2a
commit 7a9f0a970f
-8
View File
@@ -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