This commit is contained in:
North 2011-09-26 22:35:13 +03:00
parent 2e4d20c84c
commit af10364cdf
2 changed files with 5 additions and 5 deletions

View file

@ -65,15 +65,15 @@ public class PutOnLibraryTargetEffect extends OneShotEffect<PutOnLibraryTargetEf
@Override
public boolean apply(Game game, Ability source) {
boolean result = false;
for (UUID id : targetPointer.getTargets(source)) {
switch (game.getZone(id)) {
for (UUID targetId : targetPointer.getTargets(source)) {
switch (game.getZone(targetId)) {
case BATTLEFIELD:
Permanent permanent = game.getPermanent(id);
Permanent permanent = game.getPermanent(targetId);
if (permanent != null) {
result |= permanent.moveToZone(Zone.LIBRARY, source.getId(), game, onTop);
}
case GRAVEYARD:
Card card = game.getCard(id);
Card card = game.getCard(targetId);
if (card != null) {
for (Player player : game.getPlayers().values()) {
if (player.getGraveyard().contains(card.getId())) {