public override void Render() { if (Settings.Enable) { var buffs = GameController.Game.IngameState.Data.LocalPlayer.GetComponent <Life>().Buffs; if (buffs.Exists(b => b.Name == "virulent_arrow_counter" && b.Charges == 5)) { if (!Settings.LeftClick) { MouseTools.MouseLeftClickEvent(); } else { MouseTools.MouseRightClickEvent(); } } } }
IEnumerator RealeaseCharge() { while (true) { var buffs = GameController.EntityListWrapper.Player.GetComponent <Life>().Buffs.ToList(); if (buffs.Exists(b => b.Name == "charged_attack" && b.Charges == 6)) { if (!Settings.LeftClick) { yield return(MouseTools.MouseLeftClickEvent()); } else { yield return(MouseTools.MouseRightClickEvent()); } } yield return(new WaitTime(Settings.TimeCheckCharges)); } }