[10404] Additional checks for call assist.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Revils 2010-08-24 14:37:17 +04:00 committed by VladimirMangos
parent d8fb1a60ac
commit 5d6c271627
2 changed files with 4 additions and 1 deletions

View file

@ -1703,6 +1703,9 @@ bool Creature::CanAssistTo(const Unit* u, const Unit* enemy, bool checkfaction /
if (isCivilian())
return false;
if (HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_PASSIVE))
return false;
// skip fighting creature
if (isInCombat())
return false;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10403"
#define REVISION_NR "10404"
#endif // __REVISION_NR_H__