- Fix DigEffect trying to use library position for all zones

This commit is contained in:
Sol
2013-09-04 02:41:06 +00:00
parent b9f4a9abda
commit b1fd15c083

View File

@@ -278,15 +278,21 @@ public class DigEffect extends SpellAbilityEffect {
continue;
}
final PlayerZone zone = c.getOwner().getZone(destZone1);
c = game.getAction().moveTo(zone, c, libraryPosition);
if (destZone1.equals(ZoneType.Battlefield)) {
for (final String kw : keywords) {
c.addExtrinsicKeyword(kw);
}
if (sa.hasParam("Tapped")) {
c.setTapped(true);
if (zone.is(ZoneType.Library)) {
c = game.getAction().moveToLibrary(c, libraryPosition);
} else {
c = game.getAction().moveTo(zone, c);
if (destZone1.equals(ZoneType.Battlefield)) {
for (final String kw : keywords) {
c.addExtrinsicKeyword(kw);
}
if (sa.hasParam("Tapped")) {
c.setTapped(true);
}
}
}
if (sa.hasParam("ExileFaceDown")) {
c.setState(CardCharacteristicName.FaceDown);
}