mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
fix indentation for Hurkyl's Recall
This commit is contained in:
@@ -17795,62 +17795,60 @@ public class CardFactory implements NewConstants {
|
|||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Hurkyl's Recall")) {
|
else if(cardName.equals("Hurkyl's Recall")) {
|
||||||
/*
|
/*
|
||||||
* Return all artifacts target player owns to his or her hand.
|
* Return all artifacts target player owns to his or her hand.
|
||||||
*/
|
*/
|
||||||
SpellAbility spell = new Spell(card) {
|
SpellAbility spell = new Spell(card) {
|
||||||
private static final long serialVersionUID = -4098702062413878046L;
|
private static final long serialVersionUID = -4098702062413878046L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlayAI() {
|
public boolean canPlayAI() {
|
||||||
PlayerZone humanPlay = AllZone.getZone(Constant.Zone.Play, Constant.Player.Human);
|
PlayerZone humanPlay = AllZone.getZone(Constant.Zone.Play, Constant.Player.Human);
|
||||||
CardList humanArts = new CardList(humanPlay.getCards());
|
CardList humanArts = new CardList(humanPlay.getCards());
|
||||||
humanArts = humanArts.getType("Artifact");
|
humanArts = humanArts.getType("Artifact");
|
||||||
if(humanArts.size() > 0) {
|
if(humanArts.size() > 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}//canPlayAI
|
}//canPlayAI
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void chooseTargetAI() {
|
public void chooseTargetAI() {
|
||||||
setTargetPlayer(Constant.Player.Human);
|
setTargetPlayer(Constant.Player.Human);
|
||||||
}//chooseTargetAI()
|
}//chooseTargetAI()
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void resolve() {
|
public void resolve() {
|
||||||
String player = getTargetPlayer();
|
String player = getTargetPlayer();
|
||||||
PlayerZone play = AllZone.getZone(Constant.Zone.Play, player);
|
PlayerZone play = AllZone.getZone(Constant.Zone.Play, player);
|
||||||
PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, player);
|
PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, player);
|
||||||
final String opponent = AllZone.GameAction.getOpponent(player);
|
final String opponent = AllZone.GameAction.getOpponent(player);
|
||||||
PlayerZone oppPlay = AllZone.getZone(Constant.Zone.Play, opponent);
|
PlayerZone oppPlay = AllZone.getZone(Constant.Zone.Play, opponent);
|
||||||
CardList artifacts = new CardList(play.getCards());
|
CardList artifacts = new CardList(play.getCards());
|
||||||
artifacts.addAll(oppPlay.getCards());
|
artifacts.addAll(oppPlay.getCards());
|
||||||
artifacts = artifacts.getType("Artifact");
|
artifacts = artifacts.getType("Artifact");
|
||||||
|
|
||||||
for(int i = 0; i < artifacts.size(); i++) {
|
for(int i = 0; i < artifacts.size(); i++) {
|
||||||
Card thisArtifact = artifacts.get(i);
|
Card thisArtifact = artifacts.get(i);
|
||||||
//if is token, remove token from play, else return artifact to hand
|
//if is token, remove token from play, else return artifact to hand
|
||||||
if(thisArtifact.getOwner().equals(player)) {
|
if(thisArtifact.getOwner().equals(player)) {
|
||||||
if(thisArtifact.isToken()) {
|
if(thisArtifact.isToken()) {
|
||||||
play.remove(thisArtifact);
|
play.remove(thisArtifact);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
AllZone.GameAction.moveTo(hand, thisArtifact);
|
AllZone.GameAction.moveTo(hand, thisArtifact);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}//resolve()
|
}//resolve()
|
||||||
};
|
};
|
||||||
card.clearSpellAbility();
|
card.clearSpellAbility();
|
||||||
card.addSpellAbility(spell);
|
card.addSpellAbility(spell);
|
||||||
spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell));
|
spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell));
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Fracturing Gust")) {
|
else if(cardName.equals("Fracturing Gust")) {
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user