public void OnLoad() { Variables.Hero = ObjectManager.LocalHero; this.pause = Variables.Hero.ClassId != ClassId.CDOTA_Unit_Hero_Visage; if (this.pause) { return; } Variables.MenuManager = new MenuManager(Me.Name); Variables.Familiars = ObjectManager.GetEntities <Unit>().Where(unit => unit.Name.Contains("npc_dota_visage_familiar") && unit.IsAlive).ToList(); Variables.graveChill = new GraveChill(Me.Spellbook.Spell1); Variables.soulAssumption = new SoulAssumption(Me.Spellbook.Spell2); Variables.familiarControl = new FamiliarControl(); Variables.MenuManager.Menu.AddToMainMenu(); Variables.EnemyTeam = Me.GetEnemyTeam(); this.familiarAutoLastHit = new FamiliarAutoLast(); this.autoNuke = new AutoNuke(); this.follow = new Follow(); this.drawText = new DrawText(); this.targetFind = new TargetFind(); this.combo = new Combo(); this.talentAbuse = new TalentAbuse(); Game.PrintMessage( "VisageSharp" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version + " loaded"); }
public VisageSharp() { this.familiarAutoLastHit = new FamiliarAutoLast(); }