Scripts/Spells: Added spell effect validation helper
Port From (https://github.com/TrinityCore/TrinityCore/commit/f8a6a9b01713a5dbe5ed38bd3d1b1c72191cf288)
This commit is contained in:
@@ -1349,7 +1349,7 @@ namespace Scripts.Spells.Quest
|
||||
{
|
||||
public override bool Validate(SpellInfo spellInfo)
|
||||
{
|
||||
return spellInfo.GetEffects().Count > 1
|
||||
return ValidateSpellEffect(spellInfo.Id, 1)
|
||||
&& ValidateSpellInfo((uint)spellInfo.GetEffect(0).CalcValue())
|
||||
&& Global.ObjectMgr.GetQuestTemplate((uint)spellInfo.GetEffect(1).CalcValue()) != null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user