[8204] Avoid call assistance from non-combatants. Author: GriffonHeart

--HG--
branch : trunk
This commit is contained in:
megamage
2009-07-24 09:15:52 +08:00
parent 62a6d1dfbe
commit d80754a480

View File

@@ -2102,6 +2102,10 @@ bool Creature::CanAssistTo(const Unit* u, const Unit* enemy, bool checkfaction /
if (!isAlive())
return false;
// we don't need help from non-combatant ;)
if (isCivilian())
return false;
// skip fighting creature
if (isInCombat())
return false;