aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-10-05 16:37:57 +0200
committerMachiavelli <none@none>2009-10-05 16:37:57 +0200
commitd3360f0024ef42507a3a79b8cd86fb02cbece087 (patch)
treeb8abb6a06173d3435a5135ea46180534a29f4999 /src/game/Unit.cpp
parent2c34b6f3ff74d05acd7e122dc1ba016902175d23 (diff)
parent80072cf9dd3bc35c594b651ed197662c0536caa6 (diff)
Merge
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index e0069e99259..6486462af11 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -2782,7 +2782,7 @@ SpellMissInfo Unit::MeleeSpellHitResult(Unit *pVictim, SpellEntry const *spell)
SpellMissInfo Unit::MagicSpellHitResult(Unit *pVictim, SpellEntry const *spell)
{
// Can`t miss on dead target (on skinning for example)
- if (!pVictim->isAlive())
+ if (!pVictim->isAlive() && pVictim->GetTypeId() != TYPEID_PLAYER)
return SPELL_MISS_NONE;
SpellSchoolMask schoolMask = GetSpellSchoolMask(spell);