mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
*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();
|
||||
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user