Both abilities are triggered abilities. The first one triggers on the activating of a creature ability, and the second triggers on declaration of attacking or blocking.

Artwork
Loading artwork…
Imprison
Legends · #107 · EN
Nonfoil—Foil—
Card rules
Enchant creature
Whenever a player activates an ability of enchanted creature with
in its activation cost that isn't a mana ability, you may pay 1. If you do, counter that ability. If you don't, destroy this Aura.
Whenever enchanted creature attacks or blocks, you may pay 1. If you do, tap the creature, remove it from combat, and creatures it was blocking that had become blocked by only that creature this combat become unblocked. If you don't, destroy this Aura.
Rare · Illustrated by Christopher Rush
Format legality
Old School Legal
Alchemy Not Legal
Brawl Not Legal
Commander Banned
Competitive Brawl Not Legal
Duel Banned
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Legacy Banned
Modern Not Legal
Oathbreaker Banned
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Banned
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Vintage Banned
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
A mana ability is an ability that (1) isn't a loyalty ability, (2) doesn't target, and (3) could add mana when it resolves.