Skip to content

Commit

Permalink
Instance: Do not trigger ::AddInstanceEvent as GM
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed May 5, 2024
1 parent 4e63cd1 commit 3187b03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,9 @@ void instance_shattered_halls::AddInstanceEvent(uint32 id, std::function<bool(Un
{
for (const auto& data : instance->GetPlayers())
{
if (data.getSource()->IsGameMaster())
continue;

if (check(data.getSource()))
{
successEvent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ void instance_botanica::AddInstanceEvent(uint32 id, std::function<bool(Unit cons
{
for (const auto& data : instance->GetPlayers())
{
if (data.getSource()->IsGameMaster())
continue;

if (check(data.getSource()))
{
successEvent();
Expand Down

0 comments on commit 3187b03

Please sign in to comment.