mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-19 08:30:34 +01:00
Core/Spells: improved spell finish reason enum naming for finished channeled spells
This commit is contained in:
@@ -776,7 +776,7 @@ class npc_ignacious : public CreatureScript
|
||||
|
||||
void OnSpellCastFinished(SpellInfo const* spell, SpellFinishReason reason) override
|
||||
{
|
||||
if (spell->Id == SPELL_RISING_FLAMES && (reason == SPELL_FINISHED_CANCELED || reason == SPELL_FINISHED_FINISHED))
|
||||
if (spell->Id == SPELL_RISING_FLAMES && (reason == SPELL_FINISHED_CANCELED || reason == SPELL_FINISHED_CHANNELING_COMPLETE))
|
||||
me->MakeInterruptable(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -324,7 +324,7 @@ struct boss_maloriak : public BossAI
|
||||
switch (spell->Id)
|
||||
{
|
||||
case SPELL_ARCANE_STORM:
|
||||
if (reason == SPELL_FINISHED_FINISHED || reason == SPELL_FINISHED_CANCELED)
|
||||
if (reason == SPELL_FINISHED_CHANNELING_COMPLETE || reason == SPELL_FINISHED_CANCELED)
|
||||
{
|
||||
me->MakeInterruptable(false);
|
||||
me->m_Events.KillAllEvents(true);
|
||||
|
||||
@@ -138,7 +138,7 @@ struct boss_baron_ashbury : public BossAI
|
||||
if (spell->Id == SPELL_STAY_OF_EXECUTION)
|
||||
{
|
||||
// Failing achievement when Baron Ashbury finished channeling Stay of Execution
|
||||
if (reason == SPELL_FINISHED_FINISHED && IsHeroic())
|
||||
if (reason == SPELL_FINISHED_CHANNELING_COMPLETE && IsHeroic())
|
||||
_pardonDenied = false;
|
||||
|
||||
me->SetReactState(REACT_AGGRESSIVE);
|
||||
|
||||
@@ -568,7 +568,7 @@ struct boss_stormcaller_brundir : public ScriptedAI
|
||||
|
||||
void OnSpellCastFinished(SpellInfo const* spell, SpellFinishReason reason) override
|
||||
{
|
||||
if (spell->Id == SPELL_OVERLOAD && (reason == SPELL_FINISHED_FINISHED || reason == SPELL_FINISHED_CANCELED))
|
||||
if (spell->Id == SPELL_OVERLOAD && (reason == SPELL_FINISHED_CHANNELING_COMPLETE || reason == SPELL_FINISHED_CANCELED))
|
||||
_summons.DespawnAll();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user