-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathguildhouse.patch
17 lines (16 loc) · 984 Bytes
/
guildhouse.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/server/game/Entities/Object/Object.h b/src/server/game/Entities/Object/Object.h
index 0d779cd7..4d0d0594 100644
--- a/src/server/game/Entities/Object/Object.h
+++ b/src/server/game/Entities/Object/Object.h
@@ -796,7 +796,11 @@ class WorldObject : public Object, public WorldLocation
virtual void SetPhaseMask(uint32 newPhaseMask, bool update);
uint32 GetPhaseMask() const { return m_phaseMask; }
bool InSamePhase(WorldObject const* obj) const { return InSamePhase(obj->GetPhaseMask()); }
- bool InSamePhase(uint32 phasemask) const { return (GetPhaseMask() & phasemask); }
+ bool InSamePhase(uint32 phasemask) const {
+ if (GetZoneId() == 876)
+ return GetPhaseMask() == phasemask;
+ return (GetPhaseMask() & phasemask) != 0;
+ }
virtual uint32 GetZoneId(bool forceRecalc = false) const;
virtual uint32 GetAreaId(bool forceRecalc = false) const;