stop the loot completely

This commit is contained in:
Yehonal
2021-06-10 20:11:31 +02:00
parent ff2d2361bd
commit 9419bd5e41

View File

@@ -73,11 +73,10 @@ public:
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]