Creature type flags (#2195)
fix(Core/Creature): refactoring creature type flags and adding CREATURE_TYPE_FLAG_CAN_COLLIDE_WITH_MISSILES - closes #1984
This commit is contained in:
parent
5815808faa
commit
7954a2a07e
9 changed files with 61 additions and 53 deletions
|
|
@ -65,7 +65,7 @@ bool npc_escortAI::AssistPlayerInCombat(Unit* who)
|
|||
return false;
|
||||
|
||||
//experimental (unknown) flag not present
|
||||
if (!(me->GetCreatureTemplate()->type_flags & CREATURE_TYPEFLAGS_AID_PLAYERS))
|
||||
if (!(me->GetCreatureTemplate()->type_flags & CREATURE_TYPE_FLAG_CAN_ASSIST))
|
||||
return false;
|
||||
|
||||
//not a player
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue