public static void TrapHitLink(Game1 game, ITrap trap, ILink link) { if (trap.CanDamage) { States.Direction knockbackDirection = DirectionResolution(trap, link); link.TakeDamage(knockbackDirection, trap.Damage); } trap.OnHit(); }