static OathswornManager() { Obj_AI_Base.OnBuffGain += Obj_AI_Base_OnBuffAdd; Drawing.OnDraw += Drawing_OnDraw; OathswornDetector = new TickOperation(0x3E8, () => { //Detect Oathsworn if (_oathsworn == null) { _oathsworn = GameObjects.AllyHeroes.FirstOrDefault(x => x.IsMyOathsworn()); } else { OathswornDetector.Dispose(); } }, true).Start(true); //new TickOperation(0x42, () => //{ // //Save Oathsworn // if (_oathsworn == null || !Settings.SaveOathsworn) // { // return; // } // foreach (var skillshot in Tracker.DetectedSkillshots.Where(x => x.Caster.IsEnemy && x.IsAboutToHit(_oathsworn, 1000))) // { // Logging.Write()(LogLevel.Debug, (skillshot.Caster as AIHeroClient).GetSpellDamage(_oathsworn, skillshot.SData.Slot)); // } //}).Start(); }
public BlockTick(Vector3i position, Block target, TickOperation operation) { x = position.X; y = position.Y; z = position.Z; this.target = target.Id; this.operation = operation; }