Exemple #1
0
        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);
        }
Exemple #2
0
 private void PullUnit(KnockbackHandler handler, Unit enemyUnit)
 {
     handler.InverseKnockback(this.BoardController, this.Unit.GetPosition(), enemyUnit.GetPosition(), this.Knockback);
 }