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)
This commit is contained in:
hondacrx
2022-10-31 13:42:33 -04:00
parent 69a7e08402
commit d4c95916e7
+2 -2
View File
@@ -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)]