void LoadSpellEffectInfo() { SpellEffectEntries = new Dictionary <int, TrinitySpellEffectInfoEntry>(); #region Frost Nova Effects Id: 1, 2 var spellEffectEntry = new TrinitySpellEffectInfoEntry() { Id = 1, Effect = SpellEffectType.SCHOOL_DAMAGE, AuraType = AuraType.SPELL_AURA_NONE, BonusCoefficient = 0.17f, RadiusEntryId = 12, TargetA = TargetTypes.TARGET_UNIT_SRC_AREA_ENEMY, TargetB = TargetTypes.TARGET_UNIT_SRC_AREA_ENEMY }; SpellEffectEntries.Add(spellEffectEntry.Id, spellEffectEntry); spellEffectEntry = new TrinitySpellEffectInfoEntry() { Id = 2, Effect = SpellEffectType.APPLY_AURA, AuraType = AuraType.SPELL_AURA_MOD_ROOT, Mechanic = Mechanics.FREEZE, RadiusEntryId = 12, TargetA = TargetTypes.TARGET_UNIT_SRC_AREA_ENEMY, TargetB = TargetTypes.TARGET_UNIT_SRC_AREA_ENEMY }; SpellEffectEntries.Add(spellEffectEntry.Id, spellEffectEntry); #endregion }
public TrinitySpellEffectInfo(TrinitySpellInfo info, int effectIndex, TrinitySpellEffectInfoEntry effectEntry) { spellInfo = info; EffectIndex = effectIndex; Effect = effectEntry.Effect; AuraType = effectEntry.AuraType; ApplyAuraPeriod = effectEntry.ApplyAuraPeriod; DieSides = effectEntry.DieSides; TargetA = effectEntry.TargetA; TargetB = effectEntry.TargetB; BasePoints = effectEntry.BasePoints; PointsPerResource = effectEntry.PointsPerResource; Amplitude = effectEntry.Amplitude; ChainAmplitude = effectEntry.ChainAmplitude; MiscValue = effectEntry.MiscValue; MiscValueB = effectEntry.MiscValueB; Mechanic = effectEntry.Mechanic; PositionFacing = effectEntry.PositionFacing; Radius = effectEntry.RadiusEntryId > 0 ? WarcraftDatabase.SpellRadiuses[effectEntry.RadiusEntryId] : null; TriggerSpell = effectEntry.TriggerSpell; BonusCoefficient = effectEntry.BonusCoefficient; BonusCoefficientFromAP = effectEntry.BonusCoefficientFromAP; }