Пример #1
0
 /// <summary>
 ///     Instances a new Spell
 /// </summary>
 /// <param name="spellDataWrapper">SpellSlot Wrapper</param>
 public Spell(SpellDataWrapper spellDataWrapper)
 {
     Slot  = spellDataWrapper.Slot;
     Range = spellDataWrapper.Range;
     Width = spellDataWrapper.Width;
     Speed = spellDataWrapper.Speed;
     Delay = spellDataWrapper.Delay;
 }
Пример #2
0
        /// <summary>
        ///     Instances a new Spell
        /// </summary>
        /// <param name="spellDataWrapper">SpellSlot Wrapper</param>
        /// <param name="hitChance">Minimum Hit Chance</param>
        public Spell(SpellDataWrapper spellDataWrapper, HitChance hitChance = HitChance.Medium)
        {
            Slot  = spellDataWrapper.Slot;
            Range = spellDataWrapper.Range;
            Width = spellDataWrapper.Width;
            Speed = spellDataWrapper.Speed;
            Delay = spellDataWrapper.Delay;

            MinHitChance = hitChance;
        }