/// <summary> /// Initializes a new instance of the <see cref="Spell" /> class. /// 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) { this.Slot = spellDataWrapper.Slot; this.Range = spellDataWrapper.Range; this.Width = spellDataWrapper.Width; this.Speed = spellDataWrapper.Speed; this.Delay = spellDataWrapper.Delay; this.MinHitChance = hitChance; }
/// <summary> /// Initializes a new instance of the <see cref="Spell" /> class. /// </summary> /// <param name="spellDataWrapper"> /// SpellSlot Wrapper /// </param> /// <param name="hitChance"> /// Minimum Hit Chance /// </param> public Spell(SpellDataWrapper spellDataWrapper, HitChance hitChance = HitChance.Medium) { this.Slot = spellDataWrapper.Slot; this.Range = spellDataWrapper.Range; this.Width = spellDataWrapper.Width; this.Speed = spellDataWrapper.Speed; this.Delay = spellDataWrapper.Delay; this.MinHitChance = hitChance; }