Permanent equipedCreature = game.getPermanent(equipment.getAttachedTo());
Player player = game.getPlayer(source.getControllerId());
if (equipedCreature != null && player != null) {
if (equipedCreature.isTapped()) {
if (player.chooseUse(Outcome.Untap, "Untap equipped creature?", game)) {
equipedCreature.untap(game);
}
} else {
if (player.chooseUse(Outcome.Tap, "Tap equipped creature?", game)) {
equipedCreature.tap(game);
}