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:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user