aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/Creature.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index a9a7b6bf838..305df6ad20e 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