mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8204] Avoid call assistance from non-combatants.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
22ed15a76e
commit
349216d5d7
2 changed files with 5 additions and 1 deletions
|
|
@ -1819,6 +1819,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue