aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-10-28 12:42:09 +0200
committerShauren <shauren.trinity@gmail.com>2022-10-28 12:42:09 +0200
commitffd112ce6c1b8d8b7121b86160868bcf79c30530 (patch)
tree271549fa8e82ee515d5c57501e5a9b0c4fcacf72 /src
parentd5d57f921875c1a0f98d6f1ff09b20a75c0de907 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index ceb5ed1383a..83b83af5861 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -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()