diff options
| author | Shauren <shauren.trinity@gmail.com> | 2011-08-01 11:17:34 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2011-08-01 11:17:34 +0200 |
| commit | a80b36c2f374adf16a60bfedf05589aaf326aa03 (patch) | |
| tree | 6420207455b88b0093c9c998e2a7ee1d60ede6f1 /src/server/game/Grids/Notifiers | |
| parent | acc2e88c31b6aa027da4bd90ac8889b45b1b27f7 (diff) | |
Core/Spells: Limited SPELL_ATTR3_PLAYERS_ONLY attribute to only allow players, not pets and totems. This fixes many boss area spells incorrectly selecting pets and totems as their targets.
Diffstat (limited to 'src/server/game/Grids/Notifiers')
| -rwxr-xr-x | src/server/game/Grids/Notifiers/GridNotifiers.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/server/game/Grids/Notifiers/GridNotifiers.h b/src/server/game/Grids/Notifiers/GridNotifiers.h index f24fa018925..2ad81b8b3a7 100755 --- a/src/server/game/Grids/Notifiers/GridNotifiers.h +++ b/src/server/game/Grids/Notifiers/GridNotifiers.h @@ -1285,6 +1285,20 @@ namespace Trinity float m_fRange; }; + class ObjectTypeIdCheck + { + public: + ObjectTypeIdCheck(TypeID typeId, bool equals) : _typeId(typeId), _equals(equals) {} + bool operator()(WorldObject* object) + { + return (object->GetTypeId() == _typeId) == _equals; + } + + private: + TypeID _typeId; + bool _equals; + }; + // Player checks and do // Prepare using Builder localized packets with caching and send to player |
