Ejemplo n.º 1
0
        public void ViciousSpellGuard(Unit caster)
        {
            string spellName      = "Vicious SpellGuard";
            string buffType       = "Res";
            double effect         = 0.5 * caster.RessistanceValue;
            double manaRequirment = 0.3 * caster.MaxMana;

            spellCheck.BuffCheck(caster, caster, manaRequirment, effect, spellName, buffType);
        }
Ejemplo n.º 2
0
        public void GrassHop(Unit caster)
        {
            string spellName      = "Grass Hop";
            string buffType       = "Armor";
            double effect         = 0.70 * caster.ArmorValue;
            double manaRequirment = 0.5 * caster.MaxMana;

            spellCheck.BuffCheck(caster, caster, manaRequirment, effect, spellName, buffType);
        }
        public void ManaDrain(Unit caster, Unit target)
        {
            string spellName          = "Mana Drain";
            string buffType           = "Mana";
            string negativeEffectType = "Mana";
            double buffEffect         = 0.25 * target.MaxMana;
            double negativeEffect     = 0.25 * target.MaxMana;
            double manaRequirment     = 0.10 * caster.MaxHP;

            spellCheck.NegativeEffectCheck(caster, target, manaRequirment, negativeEffect, negativeEffectType);
            spellCheck.BuffCheck(caster, caster, manaRequirment, buffEffect, spellName, buffType);
        }
Ejemplo n.º 4
0
        public void Evasion(Unit caster)
        {
            string spellName      = "Evasion";
            string buffType       = "Armor";
            string effectType     = "mRegen";
            double manaRequirment = 0.5 * caster.MaxHP;
            double buffEffect     = 0.5 * caster.ArmorValue;
            double effect         = caster.Level;

            spellCheck.PositiveEffectCheck(caster, caster, manaRequirment, effect, effectType);
            spellCheck.BuffCheck(caster, caster, manaRequirment, buffEffect, spellName, buffType);
        }
        public void NaturesGift(Unit caster)
        {
            string spellName           = "Nature's Gift";
            string buffEffectType      = "hRegen";
            string possitiveEffectType = "Magic";
            string negativeEffectType  = "Damage";
            double manaRequirment      = 0;
            int    buffEffect          = caster.HealthRegen;
            double possitiveEffect     = 0.1 * caster.MagicPower;
            double negativeEffect      = 0.05 * caster.MaxHP;

            spellCheck.NegativeEffectCheck(caster, caster, manaRequirment, negativeEffect, negativeEffectType);
            spellCheck.PositiveEffectCheck(caster, caster, manaRequirment, possitiveEffect, possitiveEffectType);
            spellCheck.BuffCheck(caster, caster, manaRequirment, buffEffect, spellName, buffEffectType);
        }
Ejemplo n.º 6
0
        public void HyperStrength(Unit caster)
        {
            string spellName      = "Hyper Strength";
            string buffType       = "Attack";
            double effect         = 0.3 * caster.CurrentAttackPower;
            double manaRequirment = 0.5 * caster.MaxMana;

            spellCheck.BuffCheck(caster, caster, manaRequirment, effect, spellName, buffType);
        }
Ejemplo n.º 7
0
        public void ManaConversion(Unit caster)
        {
            string spellName          = "Mana Conversion";
            string buffType           = "Mana";
            string negativeEffectType = "Armor";
            double manaRequirment     = 0;
            double effect             = 0.25 * caster.MaxMana;
            double negativeEffect     = 0.25 * caster.ArmorValue;

            spellCheck.NegativeEffectCheck(caster, caster, manaRequirment, negativeEffect, negativeEffectType);
            spellCheck.BuffCheck(caster, caster, manaRequirment, effect, spellName, buffType);
        }