diff options
-rw-r--r-- | src/server/scripts/Spells/spell_item.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index 6b5f5d5a95e..554d2a727c4 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -1046,7 +1046,8 @@ class spell_item_ashbringer : public SpellScriptLoader { PreventHitDefaultEffect(effIndex); - Unit* caster = GetCaster()) + Unit* caster = GetCaster(); + if (caster->GetTypeId() != TYPEID_PLAYER) return; if (Player* player = caster->ToPlayer()) |