[SLD] Implement Captain America, First Avenger (#13023)

* [SLD] Implement Captain America, First Avenger

I made assumptions that WotC is going to fix the rules by adding "choose the equipment you're unattaching with Throw..." to rule 601.2b so that this card actually functions since you have to choose a TargetAnyTargetAmount in steps 601.2c/601.2d long before you actually pay the unattach cost in 601.2h.

* Remove Target workaround, add proper 601.2b handling for choosing cost targets early using inheritance to avoid having a horrific brittle list of 'these costs must be paid early'.
This commit is contained in:
Grath 2024-10-24 00:19:39 -04:00 committed by GitHub
parent 6d84cee967
commit f7f2d58081
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 262 additions and 1 deletions

View file

@ -28,7 +28,11 @@ public class DamageMultiEffect extends OneShotEffect {
}
public DamageMultiEffect(int amount, String whoDealDamageName) {
this(StaticValue.get(amount));
this(StaticValue.get(amount), whoDealDamageName);
}
public DamageMultiEffect(DynamicValue amount, String whoDealDamageName) {
this(amount);
this.sourceName = whoDealDamageName;
}