mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
refactor: removed unused data from special action, improved code (related to #11137)
This commit is contained in:
parent
a4daad1f92
commit
4e77ccb381
7 changed files with 31 additions and 38 deletions
|
|
@ -4294,10 +4294,11 @@ public class TestPlayer implements Player {
|
|||
if (specialAction.canActivate(this.getId(), game).canActivate()) {
|
||||
choices.remove(0);
|
||||
choiceRemoved = true;
|
||||
specialAction.setUnpaidMana(unpaid);
|
||||
if (activateAbility(specialAction, game)) {
|
||||
choiceUsed = true;
|
||||
}
|
||||
} else {
|
||||
Assert.fail("Found non active special mana action, but must generates only active: " + specialAction.getRule(true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue