Esempio n. 1
0
 void HandleEffectCalcSpellMod(AuraEffect aurEff, ref SpellModifier spellMod)
 {
     if (spellMod == null)
     {
         spellMod         = new SpellModifier(GetAura());
         spellMod.op      = SpellModOp.Dot;
         spellMod.type    = SpellModType.Flat;
         spellMod.spellId = GetId();
         spellMod.mask    = GetSpellInfo().GetEffect(aurEff.GetEffIndex()).SpellClassMask;
     }
     spellMod.value = aurEff.GetAmount() / 7;
 }
Esempio n. 2
0
        public override object VisitSpellLine([NotNull] classlist_langParser.SpellLineContext context)
        {
            //add spell modif

            SpellModifier modif = new SpellModifier();

            modif.SpellName = context.spell().GetText();

            currentClass.Modifiers.Add(modif);

            return(base.VisitSpellLine(context));
        }
Esempio n. 3
0
        void HandleEffectCalcSpellMod(AuraEffect aurEff, ref SpellModifier spellMod)
        {
            if (spellMod == null)
            {
                spellMod         = new SpellModifier(aurEff.GetBase());
                spellMod.op      = SpellModOp.Damage;
                spellMod.type    = SpellModType.Flat;
                spellMod.spellId = GetId();
                spellMod.mask[1] = 0x200002;
            }

            spellMod.value = aurEff.GetAmount();
        }
Esempio n. 4
0
 public AuraEffectSpellModifier(Aura aura, AuraEffectInfoSpellModifier effectInfo, int index, float value) : base(aura, effectInfo, index, value)
 {
     EffectInfo    = effectInfo;
     SpellModifier = new SpellModifier(aura, effectInfo);
 }
Esempio n. 5
0
 void ModifySpell(SpellModifier spell)
 {
 }