[DFT] Implement Adrenaline Jockey

This commit is contained in:
theelk801 2025-02-03 14:56:46 -05:00
parent c0ccbe2a2b
commit c082edd663
3 changed files with 70 additions and 0 deletions

View file

@ -16,6 +16,7 @@ import java.util.UUID;
public enum TargetController {
ACTIVE,
INACTIVE,
ANY,
YOU,
NOT_YOU,
@ -85,6 +86,8 @@ public enum TargetController {
return card.isOwnedBy(input.getSource().getFirstTarget());
case ACTIVE:
return card.isOwnedBy(game.getActivePlayerId());
case INACTIVE:
return !card.isOwnedBy(game.getActivePlayerId());
case MONARCH:
return card.isOwnedBy(game.getMonarchId());
case ANY:
@ -130,6 +133,8 @@ public enum TargetController {
return player.getId().equals(input.getSource().getFirstTarget());
case ACTIVE:
return game.isActivePlayer(player.getId());
case INACTIVE:
return !game.isActivePlayer(player.getId());
case MONARCH:
return player.getId().equals(game.getMonarchId());
default:
@ -168,6 +173,8 @@ public enum TargetController {
return !object.isControlledBy(playerId);
case ACTIVE:
return object.isControlledBy(game.getActivePlayerId());
case INACTIVE:
return !object.isControlledBy(game.getActivePlayerId());
case ENCHANTED:
Permanent permanent = input.getSource().getSourcePermanentIfItStillExists(game);
return permanent != null && input.getObject().isControlledBy(permanent.getAttachedTo());