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

This commit is contained in:
Shauren
2022-10-28 12:42:09 +02:00
parent d5d57f9218
commit ffd112ce6c

View File

@@ -5762,10 +5762,10 @@ void Spell::EffectCreatePrivateConversation()
return;
Unit* unitCaster = GetUnitCasterForEffectHandlers();
if (!unitCaster || !unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
if (!unitCaster || unitCaster->GetTypeId() != TYPEID_PLAYER)
return;
Conversation::CreateConversation(effectInfo->MiscValue, unitCaster, unitTarget->GetPosition(), unitTarget->GetGUID(), GetSpellInfo());
Conversation::CreateConversation(effectInfo->MiscValue, unitCaster, destTarget->GetPosition(), unitCaster->GetGUID(), GetSpellInfo());
}
void Spell::EffectSendChatMessage()