Scripts/Spells: Fixed startup errors in spell_gen_war_mode_enlisted
Port From (https://github.com/TrinityCore/TrinityCore/commit/2565af5fd34ce53bc390b660b4b8e180f2f9c4d3)
This commit is contained in:
@@ -4100,11 +4100,24 @@ namespace Scripts.Spells.Generic
|
||||
|
||||
public override void Register()
|
||||
{
|
||||
SpellInfo spellInfo = Global.SpellMgr.GetSpellInfo(m_scriptSpellId, Difficulty.None);
|
||||
|
||||
if (spellInfo.HasAura(AuraType.ModXpPct))
|
||||
DoEffectCalcAmount.Add(new EffectCalcAmountHandler(CalcWarModeBonus, SpellConst.EffectAll, AuraType.ModXpPct));
|
||||
|
||||
if (spellInfo.HasAura(AuraType.ModXpQuestPct))
|
||||
DoEffectCalcAmount.Add(new EffectCalcAmountHandler(CalcWarModeBonus, SpellConst.EffectAll, AuraType.ModXpQuestPct));
|
||||
|
||||
if (spellInfo.HasAura(AuraType.ModCurrencyGainFromSource))
|
||||
DoEffectCalcAmount.Add(new EffectCalcAmountHandler(CalcWarModeBonus, SpellConst.EffectAll, AuraType.ModCurrencyGainFromSource));
|
||||
|
||||
if (spellInfo.HasAura(AuraType.ModMoneyGain))
|
||||
DoEffectCalcAmount.Add(new EffectCalcAmountHandler(CalcWarModeBonus, SpellConst.EffectAll, AuraType.ModMoneyGain));
|
||||
|
||||
if (spellInfo.HasAura(AuraType.ModAnimaGain))
|
||||
DoEffectCalcAmount.Add(new EffectCalcAmountHandler(CalcWarModeBonus, SpellConst.EffectAll, AuraType.ModAnimaGain));
|
||||
|
||||
if (spellInfo.HasAura(AuraType.Dummy))
|
||||
DoEffectCalcAmount.Add(new EffectCalcAmountHandler(CalcWarModeBonus, SpellConst.EffectAll, AuraType.Dummy));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user