mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
Ability refactor: new code to search abilities in cards and permanents;
This commit is contained in:
parent
978118148b
commit
8af43dc13a
31 changed files with 85 additions and 47 deletions
|
|
@ -113,7 +113,6 @@ public class CommandersCastTest extends CardTestCommander4Players {
|
|||
waitStackResolved(5, PhaseStep.POSTCOMBAT_MAIN);
|
||||
checkPermanentCount("after cast 2", 5, PhaseStep.POSTCOMBAT_MAIN, playerA, "Academy Ruins", 1);
|
||||
|
||||
// showBattlefield("end battlefield", 5, PhaseStep.END_TURN, playerA);
|
||||
setStopAt(5, PhaseStep.END_TURN);
|
||||
setStrictChooseMode(true);
|
||||
execute();
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public class WonderTest extends CardTestPlayerBase {
|
|||
// check no flying in graveyard
|
||||
for (Card card : playerA.getGraveyard().getCards(currentGame)) {
|
||||
if (card.getName().equals("Runeclaw Bear")) {
|
||||
Assert.assertFalse(card.getAbilities().contains(FlyingAbility.getInstance()));
|
||||
Assert.assertFalse(card.hasAbility(FlyingAbility.getInstance(), currentGame));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue