public void OnUpdate_LastHit() { if (!this.pause) { this.pause = Game.IsPaused; } if (this.pause || Variable.Hero == null || !Variable.Hero.IsValid || !Variable.Hero.IsAlive) { return; } if (this.pause || Variable.Bear == null || !Variable.Bear.IsValid || !Variable.Bear.IsAlive) { this.pause = Game.IsPaused; return; } var onlyBearLastHitModeOn = Variable.OnlyBearLastHitActive && !Variable.CombinedLastHitActive; if (!onlyBearLastHitModeOn) { return; } var combinedLastHitModeOn = Variable.CombinedLastHitActive && !Variable.OnlyBearLastHitActive; if (onlyBearLastHitModeOn) { if (Utils.SleepCheck("onlybearlasthit")) { lasthit.OnlyBearLastHitExecute(); Utils.Sleep(100, "onlybearlasthit"); } ; } if (combinedLastHitModeOn) { if (Utils.SleepCheck("combinedlasthit")) { lasthit.CombinedLastHitExecute(); Utils.Sleep(100, "combinedlasthit"); } } }