mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user