mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Test framework - multiple improves:
* Added support of spell ability choice in free cast (chooseSpellAbilityForCast); * Added support of "up to" targets setup in addTargetAmount (use TestPlayer.TARGET_SKIP to stop target choose); * Restored multiple checks for addTargetAmount; * Fixed many wrong tests (wrong order or missing commands);
This commit is contained in:
parent
b0853fae8b
commit
e1fea330dd
24 changed files with 435 additions and 327 deletions
|
|
@ -1885,7 +1885,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
case SPLIT_AFTERMATH:
|
||||
MageObject object = game.getObject(ability.getSourceId());
|
||||
if (object != null) {
|
||||
LinkedHashMap<UUID, ActivatedAbility> useableAbilities = getSpellAbilities(object, game.getState().getZone(object.getId()), game);
|
||||
LinkedHashMap<UUID, ActivatedAbility> useableAbilities = getSpellAbilities(playerId, object, game.getState().getZone(object.getId()), game);
|
||||
if (useableAbilities != null && !useableAbilities.isEmpty()) {
|
||||
// game.fireGetChoiceEvent(playerId, name, object, new ArrayList<>(useableAbilities.values()));
|
||||
// TODO: Improve this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue