From 107e480f3ac48380fe7de90440a9cd2136ba3ac3 Mon Sep 17 00:00:00 2001 From: Flekz Date: Sat, 6 Apr 2024 21:52:51 +0100 Subject: [PATCH] Spell: Fix typo preventing healthstone create --- src/game/Spells/Scripts/Scripting/ClassScripts/Warlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Spells/Scripts/Scripting/ClassScripts/Warlock.cpp b/src/game/Spells/Scripts/Scripting/ClassScripts/Warlock.cpp index 56df804b78..b96c3f71b3 100644 --- a/src/game/Spells/Scripts/Scripting/ClassScripts/Warlock.cpp +++ b/src/game/Spells/Scripts/Scripting/ClassScripts/Warlock.cpp @@ -120,7 +120,7 @@ struct CreateHealthStoneWarlock : public SpellScript uint32 GetUsableHealthStoneItemType(Unit* target, SpellEntry const* spellInfo) const { - if (!target || target->IsPlayer()) + if (!target || !target->IsPlayer()) return 0; uint32 itemtype = 0;