diff options
| author | maximius <none@none> | 2009-10-13 22:05:40 -0700 |
|---|---|---|
| committer | maximius <none@none> | 2009-10-13 22:05:40 -0700 |
| commit | 832159de12964f450d535130856ce213631b5872 (patch) | |
| tree | 60f2be3af19caf06b4a8426bfc9ee8ebecd017f1 /src | |
| parent | 32d3907576dca81d5bbf5a57f75a3d262d942a68 (diff) | |
*If my target is attacking me, my target is acceptable.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Creature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 3489260eb84..a3a2e5c1690 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -2189,7 +2189,7 @@ bool Creature::_IsTargetAcceptable(const Unit *target) const const Unit *myVictim = getAttackerForHelper(); // if I'm already fighting target, the target is acceptable - if (myVictim == target) + if (myVictim == target || target->getVictim() == this) return true; // if I'm hostile towards the target, the target is acceptable |
