diff options
| author | Treeston <treeston.mmoc@gmail.com> | 2019-08-04 01:26:20 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-12-18 11:36:50 +0100 |
| commit | 14c38a1c529e634b068a67b3e7475ddcf599086b (patch) | |
| tree | 3ebb031d953f9d1b03ac7466eb4b86b0dff295bb /src/server/scripts | |
| parent | 82d62a3d4c11d408623d7624de798f810ca4c2d9 (diff) | |
Core/Unit: Spell focusing now no longer nonsensical. HasSpellFocus always const. Error logs for various stuff.
(cherry picked from commit 4a219eda07c353139608065f7d0a016094ee4ce0)
Diffstat (limited to 'src/server/scripts')
3 files changed, 3 insertions, 3 deletions
diff --git a/src/server/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp b/src/server/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp index e22e075624a..d68de052a17 100644 --- a/src/server/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp +++ b/src/server/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp @@ -1363,7 +1363,7 @@ class npc_the_lich_king_escape_hor : public CreatureScript if (!me->HasReactState(REACT_PASSIVE)) { if (Unit* victim = me->SelectVictim()) - if (!me->HandleSpellFocus(nullptr, true) && victim != me->GetVictim()) + if (!me->HasSpellFocus() && victim != me->GetVictim()) AttackStart(victim); return me->GetVictim() != nullptr; } diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp index 4eedcff833e..181c5724448 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp @@ -630,7 +630,7 @@ protected: if (!me->HasReactState(REACT_PASSIVE)) { if (Unit* victim = me->SelectVictim()) - if (!me->HandleSpellFocus(nullptr, true) && victim != me->GetVictim()) + if (!me->HasSpellFocus() && victim != me->GetVictim()) AttackStart(victim); return me->GetVictim() != nullptr; diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_thorim.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_thorim.cpp index c9f65448fb3..6637dc7746c 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_thorim.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_thorim.cpp @@ -1802,7 +1802,7 @@ class spell_thorim_lightning_charge : public SpellScriptLoader { /// @workaround: focus target is not working because spell is triggered and instant if (Creature* creature = GetCaster()->ToCreature()) - creature->SetSpellFocusTarget(GetSpell(), GetExplTargetWorldObject()); + creature->SetSpellFocus(GetSpell(), GetExplTargetWorldObject()); } void HandleCharge() |
