mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
Fix some targeting data get from client
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
419f86e939
commit
f19f5618fb
1 changed files with 1 additions and 1 deletions
|
|
@ -3723,7 +3723,7 @@ uint8 Spell::CanCast(bool strict)
|
||||||
// If 0 spell effect empty - client not send target data (need use selection)
|
// If 0 spell effect empty - client not send target data (need use selection)
|
||||||
// TODO: check it on next client version
|
// TODO: check it on next client version
|
||||||
if (m_targets.m_targetMask == TARGET_FLAG_SELF &&
|
if (m_targets.m_targetMask == TARGET_FLAG_SELF &&
|
||||||
m_spellInfo->Effect[0] == 0 && m_spellInfo->EffectImplicitTargetA[1] != TARGET_SELF)
|
m_spellInfo->EffectImplicitTargetA[1] == TARGET_CHAIN_DAMAGE)
|
||||||
{
|
{
|
||||||
if (target = m_caster->GetUnit(*m_caster, ((Player *)m_caster)->GetSelection()))
|
if (target = m_caster->GetUnit(*m_caster, ((Player *)m_caster)->GetSelection()))
|
||||||
m_targets.setUnitTarget(target);
|
m_targets.setUnitTarget(target);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue