Skip to content

Commit

Permalink
Update midsummer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeriah committed Jun 24, 2023
1 parent e8d9d54 commit d2f3177
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Bracket_1_19/scripts/events/midsummer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ class go_ahune_ice_stone_1_19 : public GameObjectScript
if (!player || !go)
return true;

// Not allowed in RDF/LFG
if (player->GetGroup() && player->GetGroup()->isLFGGroup())
{
return true;
}

if (go->FindNearestCreature(NPC_AHUNE, 200.0f, true))
return true;

Expand All @@ -65,6 +71,13 @@ class go_ahune_ice_stone_1_19 : public GameObjectScript

if (action != GOSSIP_ACTION_INFO_DEF + 1337)
return true;

// Not allowed in RDF/LFG
if (player->GetGroup() && player->GetGroup()->isLFGGroup())
{
return true;
}

if (go->FindNearestCreature(NPC_AHUNE, 200.0f, true))
return true;

Expand Down

0 comments on commit d2f3177

Please sign in to comment.