mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 05:52:06 -08:00
[BNG] Added 5 cards.
This commit is contained in:
parent
0fde4725bc
commit
b0f137ffec
9 changed files with 463 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue