mirror of
https://github.com/araxiaonline/mod-azerothshard.git
synced 2026-06-13 01:32:21 -04:00
OnBeforeLootEqualChanced
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user