From 9c615059f872f3ceba9f9ff1f5cf29012eb39f67 Mon Sep 17 00:00:00 2001 From: joschiwald Date: Sun, 15 Oct 2017 17:22:30 +0200 Subject: Fixed build --- src/server/scripts/Events/hallows_end.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/server/scripts/Events/hallows_end.cpp b/src/server/scripts/Events/hallows_end.cpp index 9036bb742ab..3db9e30f81c 100644 --- a/src/server/scripts/Events/hallows_end.cpp +++ b/src/server/scripts/Events/hallows_end.cpp @@ -16,10 +16,11 @@ */ #include "Player.h" -#include "ScriptMgr.h" #include "ScriptedCreature.h" -#include "SpellScript.h" +#include "ScriptMgr.h" #include "SpellAuraEffects.h" +#include "SpellMgr.h" +#include "SpellScript.h" enum HallowsEnd { @@ -38,9 +39,7 @@ public: bool Validate(SpellInfo const* /*spellInfo*/) override { - if (!sSpellMgr->GetSpellInfo(SPELL_HAS_WATER_BUCKET)) - return false; - return true; + return ValidateSpellInfo({ SPELL_HAS_WATER_BUCKET }); } void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) -- cgit v1.2.3