public void Stack(Camp camp) { this.CurrentCamp = camp; this.CurrentCamp.IsStacking = true; this.IsStacking = true; this.CurrentStatus = Status.Idle; this.isRanged = this.Unit.AttackCapability == AttackCapability.Ranged; this.campAvailable = false; if (!this.registered) { Game.OnUpdate += this.Game_OnUpdate; Drawing.OnDraw += this.Drawing_OnDraw; this.registered = true; } }
public void Stack(Camp camp, int delay = 0) { CurrentCamp = camp; CurrentCamp.IsStacking = true; IsStacking = true; CurrentStatus = Status.Idle; campAvailable = false; Pause = delay; lastHealth = Unit.Health; if (!registered) { Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; Game.OnWndProc += Game_OnWndProc; registered = true; } }