Javadoc for Card.moveToZone

Fixed mtg-cards-data.txt (quotes were literal)
This commit is contained in:
North 2011-08-29 18:17:38 +03:00
parent d903ba56e1
commit 8737722e90
5 changed files with 481 additions and 447 deletions

View file

@ -114,7 +114,7 @@ class OverwhelmingStampedeEffect extends ContinuousEffectImpl<OverwhelmingStampe
@Override
public boolean hasLayer(Layer layer) {
return layer == Layer.AbilityAddingRemovingEffects_6 || layer == layer.PTChangingEffects_7;
return layer == Layer.AbilityAddingRemovingEffects_6 || layer == Layer.PTChangingEffects_7;
}
}

View file

@ -104,8 +104,8 @@ class MerfolkWayfinderEffect extends OneShotEffect<MerfolkWayfinderEffect> {
int count = Math.min(player.getLibrary().size(), 3);
for (int i = 0; i < count; i++) {
Card card = player.getLibrary().removeFromTop(game);
cardsToReveal.add(card);
if (card != null) {
cardsToReveal.add(card);
if (card.hasSubtype("Island")) {
card.moveToZone(Zone.HAND, source.getId(), game, false);
} else {

View file

@ -27,6 +27,7 @@
*/
package mage.abilities.effects.common;
import java.util.Iterator;
import java.util.UUID;
import mage.Constants.Outcome;
import mage.abilities.Ability;
@ -81,13 +82,18 @@ public class DestroyMultiTargetEffect extends OneShotEffect<DestroyMultiTargetEf
public String getText(Mode mode) {
StringBuilder sb = new StringBuilder();
sb.append("Destroy ");
for (Target target: mode.getTargets()) {
if (target.getNumberOfTargets() > 1)
sb.append(target.getNumberOfTargets());
sb.append("target ").append(target.getTargetName()).append(" and ");
Iterator<Target> iterator = mode.getTargets().iterator();
while (iterator.hasNext()) {
Target target = iterator.next();
if (target.getNumberOfTargets() > 1) {
sb.append(target.getNumberOfTargets()).append(" ");
}
sb.append("target ").append(target.getTargetName());
if (iterator.hasNext()) {
sb.append(" and ");
}
}
return sb.toString();
}
}

View file

@ -61,6 +61,19 @@ public interface Card extends MageObject {
public boolean isFaceDown();
public void assignNewId();
/**
* Moves the card to the specified zone
* @param zone
* @param sourceId
* @param game
* @param flag If zone
* <ul>
* <li>LIBRARY: <ul><li>true - put on top</li><li>false - put on bottom</li></ul></li>
* <li>BATTLEFIELD: <ul><li>true - tapped</li><li>false - untapped</li></ul></li>
* <li>GRAVEYARD: <ul><li>true - not from Battlefield</li><li>false - from Battlefield</li></ul></li>
* </ul>
* @return true if cards was moved to zone
*/
public boolean moveToZone(Zone zone, UUID sourceId, Game game, boolean flag);
public boolean moveToExile(UUID exileId, String name, UUID sourceId, Game game);
public boolean cast(Game game, Zone fromZone, SpellAbility ability, UUID controllerId);

File diff suppressed because it is too large Load diff