Core/Spells: Use Unit::Kill instead of Unit::DealDamage for SPELL_EFFECT_INSTAKILL

Port From (https://github.com/TrinityCore/TrinityCore/commit/52824eedd374c92f53c772fe6431518a5f30626d)
This commit is contained in:
hondacrx
2021-11-29 16:41:15 -05:00
parent 65d40f24e6
commit 7b5524222b
+1 -1
View File
@@ -110,7 +110,7 @@ namespace Game.Spells
data.SpellID = m_spellInfo.Id;
m_caster.SendMessageToSet(data, true);
Unit.DealDamage(unitCaster, unitTarget, (uint)unitTarget.GetHealth(), null, DamageEffectType.NoDamage, SpellSchoolMask.Normal, null, false);
Unit.Kill(unitCaster, unitTarget, false);
}
[SpellEffectHandler(SpellEffectName.EnvironmentalDamage)]