aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Events
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Events')
-rw-r--r--src/server/scripts/Events/pilgrims_bounty.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/scripts/Events/pilgrims_bounty.cpp b/src/server/scripts/Events/pilgrims_bounty.cpp
index e32a77af1d3..65c4943b045 100644
--- a/src/server/scripts/Events/pilgrims_bounty.cpp
+++ b/src/server/scripts/Events/pilgrims_bounty.cpp
@@ -90,9 +90,8 @@ class spell_pilgrims_bounty_feast_on : public SpellScript
bool Validate(SpellInfo const* spellInfo) override
{
- return !spellInfo->GetEffects().empty()
- && ValidateSpellInfo({ uint32(spellInfo->GetEffect(EFFECT_0).CalcValue()) })
- && !sSpellMgr->AssertSpellInfo(spellInfo->GetEffect(EFFECT_0).CalcValue(), DIFFICULTY_NONE)->GetEffects().empty();
+ return ValidateSpellEffect({ { spellInfo->Id, EFFECT_0 } })
+ && ValidateSpellEffect({ { uint32(spellInfo->GetEffect(EFFECT_0).CalcValue()), EFFECT_0 } });
}
void HandleDummy(SpellEffIndex /*effIndex*/)