diff options
author | maximius <none@none> | 2009-10-10 23:08:44 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-10 23:08:44 -0700 |
commit | 7a9f0a970f4f14afa35b67aeed817244f8f98d35 (patch) | |
tree | 650e4da457e8312b38c0e2d85d3dd120395ee3ad /src | |
parent | 914fccad2a35db56c5f412d04175bf25486b1370 (diff) |
*Ignore react states in Creature::_IsTargetAcceptable.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Creature.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
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 |