public bool CureStop(Combatant source) { Stop = false; if (!Imprisoned) { UnpauseTimers(); if (Sleep || Petrify || Paralysed) { TurnTimer.Pause(); } } return(true); }
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); }
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); }
protected void PauseTimers() { C_Timer.Pause(); V_Timer.Pause(); TurnTimer.Pause(); }