[11489] Remove the old and custom UNIT_NPC_FLAG_GUARD for creatures.

Existing data moved to flags_extra field, with value CREATURE_FLAG_EXTRA_GUARD (0x400 / 1024).
Remove isGuard() from Unit class to a new IsGuard() function in Creature class.

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-05-14 19:16:39 +02:00
parent 639cac83a3
commit ecdb435b1e
10 changed files with 15 additions and 13 deletions

View file

@ -24,7 +24,7 @@
int GuardAI::Permissible(const Creature *creature)
{
if( creature->isGuard())
if (creature->IsGuard())
return PERMIT_BASE_SPECIAL;
return PERMIT_BASE_NO;