aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Events
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-06-03 23:17:28 +0200
committerShauren <shauren.trinity@gmail.com>2023-06-03 23:17:28 +0200
commit622eed752bc69fc4c34bb568d96d51913258f852 (patch)
tree48cefb31c08cd1654a3616295498cd336bb1b646 /src/server/scripts/Events
parent277497fdf1ca5f7b310c4544e8f1304a66034884 (diff)
Scripts/Spells: Converted remaining spell scripts to use ValidateSpellEffect
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*/)