diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-04-20 15:41:58 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-04-20 15:41:58 +0200 |
| commit | 2e79d3524f12a525c337c5ce8d84b793cacd6e91 (patch) | |
| tree | b54919f14ea4441e41015a0e21ddae6edf8f2591 /src/server/scripts/Outland | |
| parent | 7eaa695581589e8cb9a277f9c13ad0e3daf669a7 (diff) | |
Core/Spells: Rename confusing SpellState enum values
* SPELL_STATE_CASTING -> SPELL_STATE_CHANNELING (was used for "channel in progress")
* SPELL_STATE_DELAYED -> SPELL_STATE_LAUNCHED
Diffstat (limited to 'src/server/scripts/Outland')
| -rw-r--r-- | src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp b/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp index 0c6aa3f1fb5..f19b3d010f3 100644 --- a/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp +++ b/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp @@ -743,12 +743,7 @@ struct npc_greyheart_spellbinder : public ScriptedAI { if (Player* i_pl = itr->GetSource()) { - bool isCasting = false; - for (uint8 i = 0; i < CURRENT_MAX_SPELL; ++i) - if (i_pl->GetCurrentSpell(i)) - isCasting = true; - - if (isCasting) + if (i_pl->IsNonMeleeSpellCast(false, false, true)) { DoCast(i_pl, SPELL_EARTHSHOCK); break; |
