public AutoHeal() { CastPause = false; Healedplayers = null; MinimalPlayerHP = 80; MinimalPatientHP = 87; CrystalState = false; CleanBandage = true; CrystalCmd = ".enlightment"; HealRun = false; Automat = new System.Timers.Timer(200); Automat.Start(); }
public void heal() { if (HealRun) { HealRun = false; Automat.Elapsed -= Automat_Elapsed; Other.OnParalyze -= Other_OnParalyze; UO.PrintError("Healing Off"); } else { HealRun = true; if (Healedplayers == null) { Healedplayers = new HealedPlayers(); } Automat.Elapsed += Automat_Elapsed; Other.OnParalyze += Other_OnParalyze; UO.PrintInformation("Healing On"); } }
public void healclear() { Healedplayers = new HealedPlayers(); }