mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-15 20:52:22 -04:00
* 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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user