diff options
author | Biglad <none@none> | 2009-10-05 15:23:25 +0100 |
---|---|---|
committer | Biglad <none@none> | 2009-10-05 15:23:25 +0100 |
commit | 7bbb29235250d4eec52fde7f7f85da8bb0ed4a88 (patch) | |
tree | f85dfa3b49a91dfbd25f361ac76db5b2706da865 /src | |
parent | 46061f1b71aa969144dd6382a093d53712469d6e (diff) |
* Add better check for hitting dead object with spells (ie skinning and players can be skinned), this looks like its fix's dieing as a ghost, more testing needed
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 2 |
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); |