diff options
| author | QAston <none@none> | 2009-06-28 17:18:46 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-06-28 17:18:46 +0200 |
| commit | 3e079669860569990a179894b6861177fb1bef2d (patch) | |
| tree | 9f17f939aa95a50ee11cbb829a85bcf331ec260f /src/game/Player.cpp | |
| parent | d529ab76c5a414c115a8a6605fde9b43a19db18a (diff) | |
*Fix the bug that pet is still attacking his enemy even if enemy has just entered sanctuary.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 0c3438ae509..62f712aabf1 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -6343,10 +6343,11 @@ void Player::UpdateZone(uint32 newZone, uint32 newArea) } pvpInfo.inNoPvPArea = false; - if((zone->flags & AREA_FLAG_SANCTUARY) || zone->mapid == 609) // in sanctuary + if(zone->IsSanctuary()) // in sanctuary { SetByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_SANCTUARY); pvpInfo.inNoPvPArea = true; + CombatStopWithPets(); } else { |
