Пример #1
0
 public bool CureStop(Combatant source)
 {
     Stop = false;
     if (!Imprisoned)
     {
         UnpauseTimers();
         if (Sleep || Petrify || Paralysed)
         {
             TurnTimer.Pause();
         }
     }
     return(true);
 }
Пример #2
0
        public bool InflictSleep(Combatant source)
        {
            if (Immune(Status.Sleep))
            {
                return(false);
            }
            if (Sleep || Petrify || Peerless || Resist)
            {
                return(false);
            }

            CureManipulate(source);

            SleepTimeEnd = V_Timer.ElapsedUnits;
            TurnTimer.Pause();
            return(true);
        }
Пример #3
0
        public bool InflictParalyzed(Combatant source)
        {
            if (Immune(Status.Paralyzed))
            {
                return(false);
            }
            if (Paralysed || Petrify || Peerless || Resist)
            {
                return(false);
            }

            CureManipulate(source);

            Paralysed        = true;
            ParalyzedTimeEnd = V_Timer.ElapsedUnits;
            TurnTimer.Pause();

            return(true);
        }
Пример #4
0
 protected void PauseTimers()
 {
     C_Timer.Pause();
     V_Timer.Pause();
     TurnTimer.Pause();
 }