*Fix the bug that pet is still attacking his enemy even if enemy has just entered sanctuary.
--HG-- branch : trunk
This commit is contained in:
@@ -507,6 +507,14 @@ struct AreaTableEntry
|
||||
char* area_name[16]; // 11-26
|
||||
// 27, string flags, unused
|
||||
uint32 team; // 28
|
||||
|
||||
// helpers
|
||||
bool IsSanctuary() const
|
||||
{
|
||||
if (mapid == 609)
|
||||
return true;
|
||||
return (flags & AREA_FLAG_SANCTUARY);
|
||||
}
|
||||
};
|
||||
|
||||
struct AreaGroupEntry
|
||||
|
||||
Reference in New Issue
Block a user