*Friends shouldn't fight friends, even if that means you have to watch your friends kill each other.

--HG--
branch : trunk
This commit is contained in:
maximius
2009-09-29 22:05:49 -07:00
parent 09bb578d86
commit 693251497a
+3
View File
@@ -2171,6 +2171,9 @@ bool Creature::CanAssistTo(const Unit* u, const Unit* enemy, bool checkfaction /
// friendlies and other mobs they shouldn't attack
bool Creature::_IsTargetAcceptable(const Unit* target) const
{
if(IsFriendlyTo(target)) // friends shouldn't fight friends
return false;
const Unit* targetVictim = target->getAttackerForHelper();
if(!targetVictim) // if target does not have a victim, the target is acceptable