mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +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())
|
if (!isAlive())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// we don't need help from non-combatant ;)
|
||||||
|
if (isCivilian())
|
||||||
|
return false;
|
||||||
|
|
||||||
// skip fighting creature
|
// skip fighting creature
|
||||||
if (isInCombat())
|
if (isInCombat())
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8203"
|
#define REVISION_NR "8204"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue