Core/Spells: Rename SpellAttr5 to use official attribute names
* Implemented SPELL_ATTR8_HASTE_AFFECTS_DURATION
This commit is contained in:
1 parent
a7dc339a6a
commit
d1700ba5fa
8 files changed
+70
-66
No files matched your search
@@ -3360,13 +3360,13 @@ void SpellMgr::LoadSpellInfoCorrections()
|
||||
ApplySpellFix({ 8145 }, [](SpellInfo* spellInfo)
|
||||
{
|
||||
spellInfo->AttributesEx2 |= SPELL_ATTR2_IGNORE_LINE_OF_SIGHT;
|
||||
spellInfo->AttributesEx5 |= SPELL_ATTR5_START_PERIODIC_AT_APPLY;
|
||||
spellInfo->AttributesEx5 |= SPELL_ATTR5_EXTRA_INITIAL_PERIOD;
|
||||
});
|
||||
|
||||
// Earthbind Totem (instant pulse)
|
||||
ApplySpellFix({ 6474 }, [](SpellInfo* spellInfo)
|
||||
{
|
||||
spellInfo->AttributesEx5 |= SPELL_ATTR5_START_PERIODIC_AT_APPLY;
|
||||
spellInfo->AttributesEx5 |= SPELL_ATTR5_EXTRA_INITIAL_PERIOD;
|
||||
});
|
||||
|
||||
// Marked for Death
|
||||
@@ -5828,7 +5828,7 @@ void SpellMgr::LoadSpellInfoCorrections()
|
||||
// Lifebloom
|
||||
ApplySpellFix({ 33763 }, [](SpellInfo* spellInfo)
|
||||
{
|
||||
spellInfo->AttributesEx5 |= SPELL_ATTR5_SINGLE_TARGET_SPELL;
|
||||
spellInfo->AttributesEx5 |= SPELL_ATTR5_LIMIT_N;
|
||||
});
|
||||
|
||||
// Tree of Life (Passive)
|
||||
@@ -6023,7 +6023,7 @@ void SpellMgr::LoadSpellInfoCorrections()
|
||||
|
||||
// due to the way spell system works, unit would change orientation in Spell::_cast
|
||||
if (spellInfo->HasAura(SPELL_AURA_CONTROL_VEHICLE))
|
||||
spellInfo->AttributesEx5 |= SPELL_ATTR5_DONT_TURN_DURING_CAST;
|
||||
spellInfo->AttributesEx5 |= SPELL_ATTR5_AI_DOESNT_FACE_TARGET;
|
||||
|
||||
if (spellInfo->ActiveIconID == 2158) // flight
|
||||
spellInfo->Attributes |= SPELL_ATTR0_PASSIVE;
|
||||
|
||||
Reference in new issue
Block a user