Skip to content

Commit

Permalink
raids: fix scouting on raid reload
Browse files Browse the repository at this point in the history
Reload sets party=-1 and then raid=0, so just reset if raid=0 happens
when not in a party.
  • Loading branch information
Adam- committed Dec 5, 2023
1 parent 31ffb4c commit 06db808
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,18 @@ public void onVarbitChanged(VarbitChanged event)
if (event.getVarbitId() == Varbits.IN_RAID)
{
boolean inRaid = event.getValue() == 1;
// if the player is inside of a raid then check the raid
if (client.getGameState() == GameState.LOGGED_IN && inRaid)
if (client.getGameState() == GameState.LOGGED_IN)
{
scoutRaid();
// if the player is inside of a raid then check the raid
if (inRaid)
{
scoutRaid();
}
else if (raidPartyID == -1)
{
log.debug("Raid has ended");
reset();
}
}

inRaidChambers = inRaid;
Expand Down

0 comments on commit 06db808

Please sign in to comment.