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
This commit is contained in:
1 parent
c550e2d29f
commit
78de91a487
8 files changed
+39
-43
No files matched your search
@@ -2429,7 +2429,7 @@ class spell_yogg_saron_diminsh_power : public SpellScriptLoader // 64148
|
||||
{
|
||||
PreventDefaultAction();
|
||||
if (Spell* spell = GetTarget()->GetCurrentSpell(CURRENT_CHANNELED_SPELL))
|
||||
if (spell->getState() == SPELL_STATE_CASTING)
|
||||
if (spell->getState() == SPELL_STATE_CHANNELING)
|
||||
GetTarget()->InterruptSpell(CURRENT_CHANNELED_SPELL);
|
||||
}
|
||||
|
||||
|
||||
+1
-6
@@ -792,12 +792,7 @@ public:
|
||||
{
|
||||
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;
|
||||
|
||||
Reference in new issue
Block a user