Scripts/Spells: Converted remaining spell scripts to use ValidateSpellEffect
Port From (https://github.com/TrinityCore/TrinityCore/commit/622eed752bc69fc4c34bb568d96d51913258f852)
This commit is contained in:
@@ -132,9 +132,7 @@ namespace Scripts.Events.PilgrimsBounty
|
||||
{
|
||||
public override bool Validate(SpellInfo spellInfo)
|
||||
{
|
||||
return !spellInfo.GetEffects().Empty()
|
||||
&& ValidateSpellInfo((uint)spellInfo.GetEffect(0).CalcValue())
|
||||
&& !Global.SpellMgr.GetSpellInfo((uint)spellInfo.GetEffect(0).CalcValue(), Difficulty.None).GetEffects().Empty();
|
||||
return ValidateSpellEffect(spellInfo.Id, 0) && ValidateSpellEffect((uint)spellInfo.GetEffect(0).CalcValue(), 0);
|
||||
}
|
||||
|
||||
void HandleDummy(uint effIndex)
|
||||
|
||||
Reference in New Issue
Block a user