From 693251497a751821711262382442b54b91446231 Mon Sep 17 00:00:00 2001 From: maximius Date: Tue, 29 Sep 2009 22:05:49 -0700 Subject: [PATCH] *Friends shouldn't fight friends, even if that means you have to watch your friends kill each other. --HG-- branch : trunk --- src/game/Creature.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index a9a7b6bf83..305df6ad20 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -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