Exemple #1
0
        public override void OnGaveMeleeAttack(Mobile defender)
        {
            base.OnGaveMeleeAttack(defender);

            if (m_Table == null)
            {
                m_Table = new Hashtable();
            }

            if (Combatant != null && m_Table[Combatant] == null)
            {
                ResistanceMod mod = new ResistanceMod(ResistanceType.Fire, -10);
                Combatant.AddResistanceMod(mod);
                m_Table[Combatant] = mod;
                Timer.DelayCall(TimeSpan.FromSeconds(30), new TimerStateCallback(EndMod_Callback), Combatant);
            }
        }