[BNG] Added 5 cards.

This commit is contained in:
LevelX2 2014-01-22 17:13:17 +01:00
parent 0fde4725bc
commit b0f137ffec
9 changed files with 463 additions and 7 deletions

View file

@ -44,7 +44,7 @@ import mage.game.permanent.Permanent;
public class ReturnToHandFromBattlefieldAllEffect extends OneShotEffect<ReturnToHandFromBattlefieldAllEffect> {
private FilterPermanent filter;
private final FilterPermanent filter;
public ReturnToHandFromBattlefieldAllEffect(FilterPermanent filter) {
super(Outcome.ReturnToHand);

View file

@ -40,6 +40,7 @@ import mage.cards.CardsImpl;
import mage.game.Game;
import mage.players.Player;
import mage.target.common.TargetCardInLibrary;
import mage.util.CardUtil;
/**
*
@ -123,7 +124,7 @@ public class SearchLibraryPutInHandEffect extends SearchEffect<SearchLibraryPutI
StringBuilder sb = new StringBuilder();
sb.append(rulePrefix);
if (target.getNumberOfTargets() == 0 && target.getMaxNumberOfTargets() > 0) {
sb.append("up to ").append(target.getMaxNumberOfTargets()).append(" ");
sb.append("up to ").append(CardUtil.numberToText(target.getMaxNumberOfTargets())).append(" ");
sb.append(target.getTargetName()).append(revealCards ? ", reveal them, " : "").append(" and put them into your hand");
}
else {

View file

@ -400,7 +400,11 @@ public class CardUtil {
* @return the specific UUID
*/
public static UUID getCardExileZoneId(Game game, Ability source) {
String key = getCardZoneString("SourceExileZone", source.getSourceId(), game);
return getCardExileZoneId(game, source.getSourceId());
}
public static UUID getCardExileZoneId(Game game, UUID sourceId) {
String key = getCardZoneString("SourceExileZone", sourceId, game);
UUID exileId = (UUID) game.getState().getValue(key);
if (exileId == null) {
exileId = UUID.randomUUID();