mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
Minor Backup fixes, add tests (#10732)
* Backup is not optional and its effect should be BoostCreature, not Detriment * Add tests for Backup ability * Add Mirror-Shield Hoplite source test * Use Strict mode for the hoplite source test
This commit is contained in:
parent
23781ecb37
commit
b144cb6f03
2 changed files with 142 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ public class BackupAbility extends EntersBattlefieldTriggeredAbility {
|
|||
private final List<Ability> abilitiesToAdd = new ArrayList<>();
|
||||
|
||||
public BackupAbility(Card card, int amount) {
|
||||
super(null, true);
|
||||
super(null, false);
|
||||
this.addEffect(new BackupEffect(amount, abilitiesToAdd));
|
||||
this.card = card;
|
||||
this.amount = amount;
|
||||
|
|
@ -88,7 +88,7 @@ class BackupEffect extends OneShotEffect {
|
|||
private final List<Ability> abilitiesToAdd = new ArrayList<>();
|
||||
|
||||
public BackupEffect(int amount, List<Ability> abilitiesToAdd) {
|
||||
super(Outcome.Detriment);
|
||||
super(Outcome.BoostCreature);
|
||||
this.amount = amount;
|
||||
this.abilitiesToAdd.addAll(abilitiesToAdd);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue