mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
- Fixed Pale Wayfarer.
This commit is contained in:
@@ -34,7 +34,7 @@ public class ProtectEffect extends SpellAbilityEffect {
|
||||
List<Card> tgtCards = getTargetCards(sa);
|
||||
|
||||
|
||||
if (tgtCards.size() > 0) {
|
||||
if (!tgtCards.isEmpty()) {
|
||||
|
||||
final Iterator<Card> it = tgtCards.iterator();
|
||||
while (it.hasNext()) {
|
||||
@@ -100,8 +100,13 @@ public class ProtectEffect extends SpellAbilityEffect {
|
||||
final boolean isChoice = sa.getParam("Gains").contains("Choice");
|
||||
final List<String> choices = getProtectionList(sa);
|
||||
final List<String> gains = new ArrayList<String>();
|
||||
final List<Card> tgtCards = getTargetCards(sa);
|
||||
|
||||
if (isChoice && !choices.isEmpty()) {
|
||||
Player choser = sa.getActivatingPlayer();
|
||||
if (sa.hasParam("Choser") && sa.getParam("Choser").equals("Controller") && !tgtCards.isEmpty()) {
|
||||
choser = tgtCards.get(0).getController();
|
||||
}
|
||||
final String choice = choser.getController().chooseProtectionType("Choose a protection", sa, choices);
|
||||
if( null == choice)
|
||||
return;
|
||||
@@ -117,7 +122,6 @@ public class ProtectEffect extends SpellAbilityEffect {
|
||||
}
|
||||
}
|
||||
|
||||
final List<Card> tgtCards = getTargetCards(sa);
|
||||
final ArrayList<Card> untargetedCards = new ArrayList<Card>();
|
||||
final TargetRestrictions tgt = sa.getTargetRestrictions();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ Name:Pale Wayfarer
|
||||
ManaCost:5 W W
|
||||
Types:Creature Spirit Giant
|
||||
PT:4/4
|
||||
A:AB$ Protection | Cost$ 2 W W Untap | ValidTgts$ Creature | TgtPrompt$ Select target creature | Gains$ Choice | Choices$ AnyColor | SpellDescription$ Target creature gains protection from the color of your choice until end of turn.
|
||||
A:AB$ Protection | Cost$ 2 W W Untap | ValidTgts$ Creature | TgtPrompt$ Select target creature | Gains$ Choice | Choices$ AnyColor | Choser$ Controller | SpellDescription$ Target creature gains protection from the color of your choice until end of turn.
|
||||
SVar:RemAIDeck:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/pale_wayfarer.jpg
|
||||
Oracle:{2}{W}{W}, {Q}: Target creature gains protection from the color of its controller's choice until end of turn. ({Q} is the untap symbol.)
|
||||
|
||||
Reference in New Issue
Block a user