private void ReduceHealthToTarget(Unit unit) { if (!this.ValidPositions.Contains(unit.GetPosition())) { return; } KnockbackHandler handler = new KnockbackHandler(this.Unit.UnitsMap); handler.InverseKnockback(this.BoardController, this.Unit.GetPosition(), unit.GetPosition(), this.Knockback); }
private void PullUnit(KnockbackHandler handler, Unit enemyUnit) { handler.InverseKnockback(this.BoardController, this.Unit.GetPosition(), enemyUnit.GetPosition(), this.Knockback); }