mirror of
https://github.com/correl/mage.git
synced 2025-04-12 17:00:08 -09:00
Fixed compile error on getFixedTarget and failed test on new lower names
This commit is contained in:
parent
a2b6f83a3e
commit
5b0e71021d
5 changed files with 18 additions and 20 deletions
Mage.Sets/src/mage/cards
Mage.Tests/src/test/java/org/mage/test/cards/single/lrw
Mage/src/main/java/mage/target/targetpointer
|
@ -93,11 +93,6 @@ class ProgenitusProtectionAbility extends ProtectionAbility {
|
|||
return new ProgenitusProtectionAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Protection from everything";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canTarget(MageObject source, Game game) {
|
||||
return false;
|
||||
|
|
|
@ -141,12 +141,7 @@ class TeferisProtectionAbility extends ProtectionAbility {
|
|||
public TeferisProtectionAbility copy() {
|
||||
return new TeferisProtectionAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Protection from everything";
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean canTarget(MageObject source, Game game) {
|
||||
return false;
|
||||
|
|
|
@ -80,28 +80,28 @@ public class CairnWandererTest extends CardTestPlayerBase {
|
|||
addCard(Zone.GRAVEYARD, playerA, "Typhoid Rats");
|
||||
|
||||
// Testing HasteAbility.
|
||||
addCard(Zone.GRAVEYARD, playerA, "Raging Goblin");
|
||||
addCard(Zone.GRAVEYARD, playerB, "Raging Goblin");
|
||||
|
||||
// Testing LandwalkAbility.
|
||||
addCard(Zone.GRAVEYARD, playerA, "Zodiac Rooster");
|
||||
addCard(Zone.GRAVEYARD, playerB, "Zodiac Rooster");
|
||||
|
||||
// Testing LifelinkAbility.
|
||||
addCard(Zone.GRAVEYARD, playerA, "Trained Caracal");
|
||||
addCard(Zone.GRAVEYARD, playerB, "Trained Caracal");
|
||||
|
||||
// Testing ProtectionAbility.
|
||||
addCard(Zone.GRAVEYARD, playerA, "Progenitus");
|
||||
addCard(Zone.GRAVEYARD, playerB, "Progenitus");
|
||||
|
||||
// Testing ReachAbility.
|
||||
addCard(Zone.GRAVEYARD, playerA, "Tree Monkey");
|
||||
addCard(Zone.GRAVEYARD, playerB, "Tree Monkey");
|
||||
|
||||
// Testing TrampleAbility.
|
||||
addCard(Zone.GRAVEYARD, playerA, "Defiant Elf");
|
||||
addCard(Zone.GRAVEYARD, playerB, "Defiant Elf");
|
||||
|
||||
// Testing ShroudAbility.
|
||||
addCard(Zone.GRAVEYARD, playerA, "Elvish Lookout");
|
||||
addCard(Zone.GRAVEYARD, playerB, "Elvish Lookout");
|
||||
|
||||
// Testing VigilanceAbility.
|
||||
addCard(Zone.GRAVEYARD, playerA, "Veteran Cavalier");
|
||||
addCard(Zone.GRAVEYARD, playerB, "Veteran Cavalier");
|
||||
|
||||
execute();
|
||||
|
||||
|
|
|
@ -87,4 +87,13 @@ public class FixedTargets implements TargetPointer {
|
|||
return new FixedTargets(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FixedTarget getFixedTarget(Game game, Ability source) {
|
||||
this.init(game, source);
|
||||
UUID firstId = getFirst(game, source);
|
||||
if (firstId != null) {
|
||||
return new FixedTarget(firstId, game.getState().getZoneChangeCounter(firstId));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,6 +80,5 @@ public class SecondTargetPointer implements TargetPointer {
|
|||
return new FixedTarget(firstId, game.getState().getZoneChangeCounter(firstId));
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue