Esempio n. 1
0
 public override void OnDamaged(int damage)
 {
     if (m_Active && IsEquipped() && this.Mobile != null)
     {
         double mod = BaseFishPie.IsUnderEffects(this.Mobile, FishPieEffect.SoulCharge) ? .50 : .30;
         this.Mobile.Mana += (int)Math.Min(this.Mobile.ManaMax, damage * mod);
         m_Active          = false;
         this.Mobile.SendLocalizedMessage(1113636); //The soul charge effect converts some of the damage you received into mana.
     }
 }
Esempio n. 2
0
        public override void OnDamaged(int damage)
        {
            if (m_Active && IsEquipped() && Mobile != null)
            {
                double mod = BaseFishPie.IsUnderEffects(Mobile, FishPieEffect.SoulCharge) ? .50 : .30;
                Mobile.Mana += (int)Math.Min(Mobile.ManaMax, damage * mod);
                m_Active     = false;

                Server.Effects.SendTargetParticles(Mobile, 0x375A, 0x1, 0xA, 0x71, 0x2, 0x1AE9, 0, 0);

                Mobile.SendLocalizedMessage(1113636); //The soul charge effect converts some of the damage you received into mana.
            }
        }
Esempio n. 3
0
 protected override void OnTick()
 {
     BaseFishPie.RemoveBuff(m_From, m_EffectType);
 }