Added Infernal Tudor, Hanna Ships Navigator, Hazezon Tamar.

This commit is contained in:
LevelX2 2014-04-06 17:26:54 +02:00
parent 93b968d92a
commit 126d628d63
9 changed files with 389 additions and 14 deletions

View file

@ -29,11 +29,11 @@
package mage.abilities.effects.common;
import java.util.UUID;
import mage.constants.Outcome;
import mage.abilities.Ability;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.StaticValue;
import mage.abilities.effects.OneShotEffect;
import mage.constants.Outcome;
import mage.game.Game;
import mage.game.permanent.token.Token;
import mage.util.CardUtil;

View file

@ -33,9 +33,11 @@ import java.util.UUID;
import mage.constants.Outcome;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.constants.Zone;
import mage.filter.FilterPermanent;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
/**
*
@ -72,11 +74,17 @@ public class ExileAllEffect extends OneShotEffect<ExileAllEffect> {
@Override
public boolean apply(Game game, Ability source) {
List<Permanent> permanents = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getId(), game);
for (Permanent permanent: permanents) {
permanent.moveToExile(exileId, exileZone, source.getSourceId(), game);
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {
List<Permanent> permanents = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game);
for (Permanent permanent: permanents) {
controller.moveCardToExileWithInfo(permanent, exileId, exileZone, source.getSourceId(), game, Zone.BATTLEFIELD);
}
return true;
}
return true;
return false;
}
private void setText() {

View file

@ -95,7 +95,7 @@ public class SearchLibraryPutInHandEffect extends SearchEffect<SearchLibraryPutI
for (UUID cardId: target.getTargets()) {
Card card = player.getLibrary().remove(cardId, game);
if (card != null){
card.moveToZone(Zone.HAND, source.getId(), game, false);
card.moveToZone(Zone.HAND, source.getSourceId(), game, false);
if (revealCards) {
cards.add(card);
}

View file

@ -34,6 +34,7 @@ package mage.constants;
*/
public enum AbilityWord {
BLOODRUSH("Bloodrush"),
HELLBENT("Hellbent"),
HEROIC("Heroic"),
LANDFALL("Landfall"),
METALCRAFT("Metalcraft");

View file

@ -1622,10 +1622,12 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
//20091005 - 701.14c
Library searchedLibrary = null;
if (targetPlayerId.equals(playerId)) {
game.informPlayers(new StringBuilder(getName()).append(" searches his or her library").toString());
searchedLibrary = library;
} else {
Player targetPlayer = game.getPlayer(targetPlayerId);
if (targetPlayer != null) {
game.informPlayers(new StringBuilder(getName()).append(" searches the library of ").append(targetPlayer.getName()).toString());
searchedLibrary = targetPlayer.getLibrary();
}
}