*If my target is attacking me, my target is acceptable.
--HG-- branch : trunk
This commit is contained in:
@@ -2189,7 +2189,7 @@ bool Creature::_IsTargetAcceptable(const Unit *target) const
|
|||||||
const Unit *myVictim = getAttackerForHelper();
|
const Unit *myVictim = getAttackerForHelper();
|
||||||
|
|
||||||
// if I'm already fighting target, the target is acceptable
|
// if I'm already fighting target, the target is acceptable
|
||||||
if (myVictim == target)
|
if (myVictim == target || target->getVictim() == this)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// if I'm hostile towards the target, the target is acceptable
|
// if I'm hostile towards the target, the target is acceptable
|
||||||
|
|||||||
Reference in New Issue
Block a user