diff options
author | Wyrserth <wyrserth@protonmail.com> | 2019-07-05 14:11:15 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-12-14 20:52:13 +0100 |
commit | edf12fd6a1b989d7785bc0619002eda1ccc87368 (patch) | |
tree | b225ce3361419b08c0f766105dda8e92db3cd7c6 /src/server/game/Conditions/ConditionMgr.h | |
parent | 104ec7a81a5bb782f81fd05b872bf664e4de1c89 (diff) |
Core/Conditions: allow spellclick conditions to properly work for aura apply/remove (#23527)
(cherry picked from commit 12e545f7e2247f91db3fd1e8e2f961982422a147)
Diffstat (limited to 'src/server/game/Conditions/ConditionMgr.h')
-rw-r--r-- | src/server/game/Conditions/ConditionMgr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.h b/src/server/game/Conditions/ConditionMgr.h index df4c683439f..82ecbc98c52 100644 --- a/src/server/game/Conditions/ConditionMgr.h +++ b/src/server/game/Conditions/ConditionMgr.h @@ -23,6 +23,7 @@ #include <array> #include <string> #include <unordered_map> +#include <unordered_set> #include <vector> class Creature; @@ -292,6 +293,9 @@ class TC_GAME_API ConditionMgr bool IsObjectMeetingVehicleSpellConditions(uint32 creatureId, uint32 spellId, Player* player, Unit* vehicle) const; bool IsObjectMeetingSmartEventConditions(int64 entryOrGuid, uint32 eventId, uint32 sourceType, Unit* unit, WorldObject* baseObject) const; bool IsObjectMeetingVendorItemConditions(uint32 creatureId, uint32 itemId, Player* player, Creature* vendor) const; + + bool IsSpellUsedInSpellClickConditions(uint32 spellId) const; + ConditionContainer const* GetConditionsForAreaTrigger(uint32 areaTriggerId, bool isServerSide) const; bool IsObjectMeetingTrainerSpellConditions(uint32 trainerId, uint32 spellId, Player* player) const; @@ -329,6 +333,8 @@ class TC_GAME_API ConditionMgr ConditionEntriesByCreatureIdMap SpellClickEventConditionStore; ConditionEntriesByCreatureIdMap NpcVendorConditionContainerStore; SmartEventConditionContainer SmartEventConditionStore; + + std::unordered_set<uint32> SpellsUsedInSpellClickConditions; ConditionEntriesByAreaTriggerIdMap AreaTriggerConditionContainerStore; ConditionEntriesByCreatureIdMap TrainerSpellConditionContainerStore; }; |