Core/Globals: Load spellspecific and aurastate after loading spell ranks

Core/Spells: Removed obsolete code
Core/Spell: do not fail triggered Charge effects in case a root is present.
This commit is contained in:
hondacrx
2017-12-30 16:53:56 -05:00
parent e7565adaf7
commit b180f6a9ba
3 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -4928,7 +4928,7 @@ namespace Game.Spells
}
case SpellEffectName.Charge:
{
if (m_caster.HasUnitState(UnitState.Root))
if (!_triggeredCastFlags.HasAnyFlag(TriggerCastFlags.IgnoreCasterAuras) && m_caster.HasUnitState(UnitState.Root))
return SpellCastResult.Rooted;
if (GetSpellInfo().NeedsExplicitUnitTarget())
-4
View File
@@ -1429,10 +1429,6 @@ namespace Game.Spells
case 8091: // Armor
_spellSpecific = SpellSpecificType.Scroll;
break;
case 12880: // Enrage (Enrage)
case 57518: // Enrage (Wrecking Crew)
_spellSpecific = SpellSpecificType.WarriorEnrage;
break;
}
}
break;