diff options
| author | Treeston <treeston.mmoc@gmail.com> | 2019-08-04 01:26:20 +0200 |
|---|---|---|
| committer | Treeston <treeston.mmoc@gmail.com> | 2019-08-04 01:26:20 +0200 |
| commit | 4a219eda07c353139608065f7d0a016094ee4ce0 (patch) | |
| tree | 50d6c0922d36e4e9280a49e6bc0e6ee7c8bd3c9e /src/server/game/Spells/Spell.cpp | |
| parent | 6a330214a112460f4e492135e76f1277328af406 (diff) | |
Core/Unit: Spell focusing now no longer nonsensical. HasSpellFocus always const. Error logs for various stuff.
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
| -rw-r--r-- | src/server/game/Spells/Spell.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 42fb5e2eab1..5e05fd2f911 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -3066,9 +3066,9 @@ SpellCastResult Spell::prepare(SpellCastTargets const& targets, AuraEffect const if (!(m_spellInfo->IsNextMeleeSwingSpell() || IsAutoRepeat())) { if (m_targets.GetObjectTarget() && m_caster != m_targets.GetObjectTarget()) - m_caster->ToCreature()->SetSpellFocusTarget(this, m_targets.GetObjectTarget()); + m_caster->ToCreature()->SetSpellFocus(this, m_targets.GetObjectTarget()); else if (m_spellInfo->HasAttribute(SPELL_ATTR5_DONT_TURN_DURING_CAST)) - m_caster->ToCreature()->SetSpellFocusTarget(this, nullptr); + m_caster->ToCreature()->SetSpellFocus(this, nullptr); } } @@ -4554,8 +4554,8 @@ void Spell::SendChannelStart(uint32 duration) if (channelTarget != unitCaster->GetGUID()) if (Creature* creatureCaster = unitCaster->ToCreature()) - if (!creatureCaster->HandleSpellFocus(this)) - creatureCaster->SetSpellFocusTarget(this, ObjectAccessor::GetWorldObject(*creatureCaster, channelTarget)); + if (!creatureCaster->HasSpellFocus(this)) + creatureCaster->SetSpellFocus(this, ObjectAccessor::GetWorldObject(*creatureCaster, channelTarget)); } unitCaster->SetUInt32Value(UNIT_CHANNEL_SPELL, m_spellInfo->Id); |
