mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Fix DigEffect trying to use library position for all zones
This commit is contained in:
@@ -278,15 +278,21 @@ public class DigEffect extends SpellAbilityEffect {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
final PlayerZone zone = c.getOwner().getZone(destZone1);
|
final PlayerZone zone = c.getOwner().getZone(destZone1);
|
||||||
c = game.getAction().moveTo(zone, c, libraryPosition);
|
|
||||||
if (destZone1.equals(ZoneType.Battlefield)) {
|
if (zone.is(ZoneType.Library)) {
|
||||||
for (final String kw : keywords) {
|
c = game.getAction().moveToLibrary(c, libraryPosition);
|
||||||
c.addExtrinsicKeyword(kw);
|
} else {
|
||||||
}
|
c = game.getAction().moveTo(zone, c);
|
||||||
if (sa.hasParam("Tapped")) {
|
if (destZone1.equals(ZoneType.Battlefield)) {
|
||||||
c.setTapped(true);
|
for (final String kw : keywords) {
|
||||||
|
c.addExtrinsicKeyword(kw);
|
||||||
|
}
|
||||||
|
if (sa.hasParam("Tapped")) {
|
||||||
|
c.setTapped(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sa.hasParam("ExileFaceDown")) {
|
if (sa.hasParam("ExileFaceDown")) {
|
||||||
c.setState(CardCharacteristicName.FaceDown);
|
c.setState(CardCharacteristicName.FaceDown);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user