public void Stab(Unit caster, Unit target) { string spellName = "Stab"; string posssitiveEffectType = "Attack"; double effect = 0.1 * caster.AttackPower; double damage = 1.1 * caster.CurrentAttackPower - target.CurrentArmorValue; double manaRequirment = 0.12 * caster.MaxMana; spellCheck.PositiveEffectCheck(caster, target, manaRequirment, effect, posssitiveEffectType); spellCheck.PhysicalDamageCheck(caster, target, manaRequirment, damage, spellName); }
public void NaturesTouch(Unit caster, Unit target) { string spellName = "Nature's Touch"; string effectType = "Armor"; double armorIncrease = target.ArmorValue * 0.2; double manaRequirment = 0.5 * caster.MaxMana; double effect = caster.CurrentMagicPower * 0.5 + caster.CurrentManaRegen; spellCheck.PositiveEffectCheck(caster, caster, manaRequirment, armorIncrease, effectType); spellCheck.HealCheck(caster, target, manaRequirment, effect, spellName); }
public void WaterBall(Unit caster, Unit target) { string spellName = "Water Ball"; string effectType = "mRegen"; double manaRequirment = 0.30 * caster.MaxMana; int effect = (int)caster.MaxMana / 10; double damage = caster.CurrentMagicPower * 0.7 - target.CurrentRessistanceValue; spellCheck.PositiveEffectCheck(caster, caster, manaRequirment, effect, effectType); spellCheck.SpellDamageCheck(caster, target, manaRequirment, damage, spellName); }
public void HolyStrike(Unit caster, Unit target) { string spellName = "Holy Strike"; string effectType = "Magic"; double effect = 0.10 * caster.MagicPower; double manaRequirment = 0.15 * caster.MaxMana; double damage = 1.1 * caster.CurrentAttackPower - 0.5 * target.CurrentArmorValue; spellCheck.PositiveEffectCheck(caster, caster, manaRequirment, effect, effectType); spellCheck.PhysicalDamageCheck(caster, target, manaRequirment, damage, spellName); }
public void HastingArrow(Unit caster, Unit target) { string spellName = "Hasting Arrow"; string effectType = "Crit"; int effect = 5; double damage = caster.CurrentAttackPower * 1.2; double manaRequirment = caster.MaxMana * 0.2; spellCheck.PositiveEffectCheck(caster, caster, manaRequirment, effect, effectType); spellCheck.PhysicalDamageCheck(caster, target, manaRequirment, damage, spellName); }
public void RagingBlow(Unit caster, Unit target) { string spellName = "Raging Blow"; string effectType = "mRegen"; double damage = 1 * caster.AttackPower - 0.8 * target.CurrentArmorValue; int effect = caster.Level; double manaRequirment = 0.15 * caster.MaxMana; spellCheck.PositiveEffectCheck(caster, caster, manaRequirment, effect, effectType); spellCheck.PhysicalDamageCheck(caster, target, manaRequirment, damage, spellName); }
public void Blessing(Unit caster) { string spellName = "Blessing"; string buffType = "Magic"; string effectType = "hRegen"; double buffEffect = 0.25 * caster.MagicPower; double effect = caster.Level + 1; double manaRequirment = 0.5 * caster.MaxMana; spellCheck.PositiveEffectCheck(caster, caster, manaRequirment, effect, effectType); spellCheck.BuffCheck(caster, caster, manaRequirment, effect, spellName, buffType); }