Example #1
0
        private static void EventSink_BeforeDamage(BeforeDamageEventArgs e)
        {
            Perseverance spellsong = Spellsong.GetEffectSpellsong <Perseverance>(e.Mobile);

            if (spellsong != null)
            {
                e.Amount = (int)(e.Amount * (100 - spellsong.DamageTaken) / 100);
            }
        }
Example #2
0
        private static void Mobile_Damaged(Mobile sender, DamagedEventArgs e)
        {
            if (!sender.Alive)
            {
                return;
            }

            var spellsong = Spellsong.GetEffectSpellsong <Tribulation>(sender);

            if (spellsong != null)
            {
                spellsong.OnDamage(sender, e.Amount);
            }
        }
Example #3
0
        private static void EventSink_BeforeDamage(BeforeDamageEventArgs e)
        {
            if (e.From == null)
            {
                return;
            }

            Inspire spellsong = Spellsong.GetEffectSpellsong <Inspire>(e.From);

            if (spellsong != null)
            {
                e.Amount = (int)(e.Amount * (100 + spellsong.DamageModifier) / 100);
            }
        }