mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
DigEffect add "WithCounter" ETB counters for Battlefield destination
This commit is contained in:
@@ -408,6 +408,9 @@ public class DigEffect extends SpellAbilityEffect {
|
|||||||
if (sa.hasParam("Tapped")) {
|
if (sa.hasParam("Tapped")) {
|
||||||
c.setTapped(true);
|
c.setTapped(true);
|
||||||
}
|
}
|
||||||
|
if (destZone1.equals(ZoneType.Battlefield) && sa.hasParam("WithCounter")) {
|
||||||
|
c.addEtbCounter(CounterType.getType(sa.getParam("WithCounter")), 1, player);
|
||||||
|
}
|
||||||
c = game.getAction().moveTo(zone, c, sa, moveParams);
|
c = game.getAction().moveTo(zone, c, sa, moveParams);
|
||||||
if (destZone1.equals(ZoneType.Battlefield)) {
|
if (destZone1.equals(ZoneType.Battlefield)) {
|
||||||
if (addToCombat(c, c.getController(), sa, "Attacking", "Blocking")) {
|
if (addToCombat(c, c.getController(), sa, "Attacking", "Blocking")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user