From d4c95916e7f7a619717469aff1a90dc605a66811 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 31 Oct 2022 13:42:33 -0400 Subject: [PATCH] Core/Spells: Removed unitTarget requirement from SPELL_EFFECT_CREATE_PRIVATE_CONVERSATION as it is executed in SPELL_EFFECT_HANDLE_HIT mode where no units are targeted Port From (https://github.com/TrinityCore/TrinityCore/commit/ffd112ce6c1b8d8b7121b86160868bcf79c30530) --- Source/Game/Spells/SpellEffects.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index 0c56a2f0e..a49f5bccb 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -5578,10 +5578,10 @@ namespace Game.Spells return; Unit unitCaster = GetUnitCasterForEffectHandlers(); - if (unitCaster == null || unitTarget == null || !unitTarget.IsPlayer()) + if (unitCaster == null || !unitCaster.IsPlayer()) return; - Conversation.CreateConversation((uint)effectInfo.MiscValue, unitCaster, unitTarget.GetPosition(), unitTarget.GetGUID(), GetSpellInfo()); + Conversation.CreateConversation((uint)effectInfo.MiscValue, unitCaster, destTarget.GetPosition(), unitCaster.GetGUID(), GetSpellInfo()); } [SpellEffectHandler(SpellEffectName.SendChatMessage)]