From 7b5524222b5c061158c6c324db7a95b51cc86b80 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 29 Nov 2021 16:41:15 -0500 Subject: [PATCH] Core/Spells: Use Unit::Kill instead of Unit::DealDamage for SPELL_EFFECT_INSTAKILL Port From (https://github.com/TrinityCore/TrinityCore/commit/52824eedd374c92f53c772fe6431518a5f30626d) --- Source/Game/Spells/SpellEffects.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index fd339f23f..44b5bb19a 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -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)]