From bbdf62d6e84a47036e39a59a1349c073711ec2ca Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 27 Oct 2018 12:14:54 +0200 Subject: Core/Spells: Warning fix --- src/server/game/AI/ScriptedAI/ScriptedCreature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/game/AI/ScriptedAI') diff --git a/src/server/game/AI/ScriptedAI/ScriptedCreature.cpp b/src/server/game/AI/ScriptedAI/ScriptedCreature.cpp index d57dc6c4c24..f9f70d5a9f7 100644 --- a/src/server/game/AI/ScriptedAI/ScriptedCreature.cpp +++ b/src/server/game/AI/ScriptedAI/ScriptedCreature.cpp @@ -310,7 +310,7 @@ SpellInfo const* ScriptedAI::SelectSpell(Unit* target, uint32 school, uint32 mec continue; //Continue if we don't have the mana to actually cast this spell - if (tempSpell->ManaCost > me->GetPower(Powers(tempSpell->PowerType))) + if (tempSpell->ManaCost > me->GetPower(tempSpell->PowerType)) continue; //Check if the spell meets our range requirements -- cgit v1.2.3