*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:
QAston
2009-06-28 17:18:46 +02:00
parent d529ab76c5
commit 3e07966986
3 changed files with 18 additions and 9 deletions
+8
View File
@@ -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