diff options
| author | ccrs <ccrs@users.noreply.github.com> | 2019-08-03 17:53:22 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-12-18 00:29:38 +0100 |
| commit | a58881d6dac1975b77abf361c5dc5ffcd755d2be (patch) | |
| tree | c9f10d648eb80248958f19b0a763ee03125a42f6 /src/server/game/Spells/Spell.cpp | |
| parent | 0b77a48ec50883d9119297c808493a1257f99988 (diff) | |
Core/Unit: rename more methods
Workaround prework till actual facing system rework arrives
(cherry picked from commit 85ad0befc51879627f865c86a6b415ca12401fe3)
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
| -rw-r--r-- | src/server/game/Spells/Spell.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index f6925e947c5..813a68ce6ba 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -3167,9 +3167,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()->FocusTarget(this, m_targets.GetObjectTarget()); + m_caster->ToCreature()->SetSpellFocusTarget(this, m_targets.GetObjectTarget()); else if (m_spellInfo->HasAttribute(SPELL_ATTR5_DONT_TURN_DURING_CAST)) - m_caster->ToCreature()->FocusTarget(this, nullptr); + m_caster->ToCreature()->SetSpellFocusTarget(this, nullptr); } } @@ -3407,7 +3407,7 @@ void Spell::_cast(bool skipCheck) } // if the spell allows the creature to turn while casting, then adjust server-side orientation to face the target now - // client-side orientation is handled by the client itself, as the cast target is targeted due to Creature::FocusTarget + // client-side orientation is handled by the client itself, as the cast target is targeted due to Creature::SetSpellFocusTarget if (m_caster->GetTypeId() == TYPEID_UNIT && !m_caster->ToUnit()->HasUnitFlag(UNIT_FLAG_POSSESSED)) if (!m_spellInfo->HasAttribute(SPELL_ATTR5_DONT_TURN_DURING_CAST)) if (WorldObject* objTarget = m_targets.GetObjectTarget()) @@ -3482,7 +3482,7 @@ void Spell::_cast(bool skipCheck) if (!m_spellInfo->IsChanneled()) if (Creature* creatureCaster = m_caster->ToCreature()) - creatureCaster->ReleaseFocus(this); + creatureCaster->ReleaseSpellFocus(this); // Okay, everything is prepared. Now we need to distinguish between immediate and evented delayed spells if ((m_spellInfo->HasHitDelay() && !m_spellInfo->IsChanneled()) || m_spellInfo->HasAttribute(SPELL_ATTR4_UNK4)) @@ -3940,7 +3940,7 @@ void Spell::finish(bool ok) } if (Creature* creatureCaster = unitCaster->ToCreature()) - creatureCaster->ReleaseFocus(this); + creatureCaster->ReleaseSpellFocus(this); if (!ok) return; @@ -4779,7 +4779,7 @@ void Spell::SendChannelStart(uint32 duration) if(target.TargetGUID != unitCaster->GetGUID()) if (Creature* creatureCaster = unitCaster->ToCreature()) if (!creatureCaster->HandleSpellFocus(this)) - creatureCaster->FocusTarget(this, ObjectAccessor::GetWorldObject(*creatureCaster, target.TargetGUID)); + creatureCaster->SetSpellFocusTarget(this, ObjectAccessor::GetWorldObject(*creatureCaster, target.TargetGUID)); } for (GOTargetInfo const& target : m_UniqueGOTargetInfo) |
