OnBeforeLootEqualChanced

This commit is contained in:
Yehonal
2021-06-10 20:41:31 +02:00
parent 8f609e2e6c
commit 5f9b54fe4a

View File

@@ -73,9 +73,19 @@ public:
ChallengeModeGlobal() : GlobalScript("ChallengeModeGlobal") {
}
bool OnBeforeLootEqualChanced(Player const* player, LootStoreItemList EqualChanced, Loot& loot, LootStore const& store) override
{
if (!sChallengeMode->isEligibleForReward(player)) {
return false;
}
return true
}
bool OnItemRoll(Player const* player, LootStoreItem const */* item */, float &chance, Loot &/* loot */, LootStore const& /* store */) override
{
if (!sChallengeMode->isEligibleForReward(player)) {
chance = 0;
return false;
}