Skip to content

Commit

Permalink
stop the loot completely
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehonal committed Jun 10, 2021
1 parent ff2d236 commit 9419bd5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,10 @@ class ChallengeModeGlobal : public GlobalScript
ChallengeModeGlobal() : GlobalScript("ChallengeModeGlobal") {
}

void OnItemRoll(Player const* player, LootStoreItem const */* item */, float &chance, Loot &/* loot */, LootStore const& /* store */) override
bool OnItemRoll(Player const* player, LootStoreItem const */* item */, float &chance, Loot &/* loot */, LootStore const& /* store */) override
{
if (!sChallengeMode->isEligibleForReward(player)) {
chance = 0;
return;
return false;
}

// [AZTH-DISABLED]
Expand Down

0 comments on commit 9419bd5

Please sign in to comment.