fix(Core/SmartScripts): Implemented new target type: SMART_TARGET_SUM… (#13880)

* fix(Core/SmartScripts): Implemented new target type: SMART_TARGET_SUMMONED_CREATURES.

Fixes #13787

* Update.

* Update.
This commit is contained in:
UltraNix
2022-12-06 13:41:05 +01:00
committed by GitHub
parent ac65434f3f
commit 95652e14d5
6 changed files with 56 additions and 1 deletions

View File

@@ -232,6 +232,9 @@ public:
bool AllowPhaseReset() const { return _allowPhaseReset; }
void SetPhaseReset(bool allow) { _allowPhaseReset = allow; }
void AddCreatureSummon(ObjectGuid const& guid);
void RemoveCreatureSummon(ObjectGuid const& guid);
private:
void IncPhase(uint32 p);
void DecPhase(uint32 p);
@@ -306,6 +309,8 @@ private:
SmartScriptHolder s;
return s;
}
GuidUnorderedSet _summonList;
};
#endif