diff options
author | joschiwald <joschiwald.trinity@gmail.com> | 2017-10-15 17:22:30 +0200 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-10-15 17:22:30 +0200 |
commit | 9c615059f872f3ceba9f9ff1f5cf29012eb39f67 (patch) | |
tree | 9a67b67ddb7bfb5aa151453fe8305e15f37ec49d /src | |
parent | fe2e3b67a86be5a486c5bfd79d09986b9092a872 (diff) |
Fixed build
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Events/hallows_end.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
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*/) |