diff options
author | click <clickvd@gonnamakeyou.com> | 2011-05-13 16:28:41 +0200 |
---|---|---|
committer | click <clickvd@gonnamakeyou.com> | 2011-05-13 16:28:41 +0200 |
commit | a40e33efe7e402331d4960b13ef634a1032abca8 (patch) | |
tree | e97ac80122007faa48380ecc566355b2f423998c /src | |
parent | 12fec6936173b4c62330dc04df5bb68a5706d655 (diff) |
Fix a silly typo done in 0902bb0f2bd1
Diffstat (limited to 'src')
-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()) |