Skip to content

Commit

Permalink
Merge pull request #657 from Xian55/fix/655
Browse files Browse the repository at this point in the history
Fix: LootGoal: WaitForLootReset should await for CORPSE or READY
  • Loading branch information
Xian55 authored Jan 10, 2025
2 parents 92e45b6 + 8ecba13 commit 6bb14b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Core/Goals/LootGoal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public override void OnEnter()

private float WaitForLootReset()
{
return wait.UntilCount(Loot.LOOT_RESET_UPDATE_COUNT, LootStatusIsCorpse);
return wait.UntilCount(Loot.LOOT_RESET_UPDATE_COUNT, LootStatusIsCorpseOrReady);
}

private void WaitForLosingTarget()
Expand Down Expand Up @@ -404,8 +404,9 @@ private bool MoveToTargetAndReached()
return bits.Target() && playerReader.MinRangeZero();
}

private bool LootStatusIsCorpse() =>
(LootStatus)playerReader.LootEvent.Value == LootStatus.CORPSE;
private bool LootStatusIsCorpseOrReady() =>
(LootStatus)playerReader.LootEvent.Value
is LootStatus.CORPSE or LootStatus.READY;

#region Logging

Expand Down

0 comments on commit 6bb14b9

Please sign in to comment.