refactor: add new simpler technique for intervening if conditions on triggered abilities (#13037)

too many usages to fix all at once, plus condition text needs updating, but this will give a cleaner option for new implementations
This commit is contained in:
xenohedron 2024-10-27 00:19:57 -04:00 committed by GitHub
parent fb71ce8c85
commit 8a8773971d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 153 additions and 122 deletions

View file

@ -16,4 +16,9 @@ public enum FatefulHourCondition implements Condition {
Player player = game.getPlayer(source.getControllerId());
return player != null && player.getLife() <= 5;
}
@Override
public String toString() {
return "you have 5 or less life";
}
}