Test framework: added aliases support for activated abilities (related to #7036);

This commit is contained in:
Oleg Agafonov 2020-09-04 02:18:40 +04:00
parent 7a1795660a
commit 535e49b89f
5 changed files with 22 additions and 13 deletions

View file

@ -3390,8 +3390,10 @@ public abstract class PlayerImpl implements Player, Serializable {
getPlayableFromObjectSingle(game, fromZone, adventureCard, adventureCard.getSharedAbilities(game), availableMana, output);
} else if (object instanceof Card) {
getPlayableFromObjectSingle(game, fromZone, object, ((Card) object).getAbilities(game), availableMana, output);
} else if (object instanceof StackObject) {
// spells on stack are processing by Card above, other stack objects must be ignored
} else {
// other things like StackObject or CommandObject
// other things like CommandObject
getPlayableFromObjectSingle(game, fromZone, object, object.getAbilities(), availableMana, output);
}