mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Attempt to fix an SBA issue (http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=14307&start=120#p151485)
This commit is contained in:
@@ -818,7 +818,8 @@ public class GameAction {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
List<Card> noRegCreats = new ArrayList<Card>();
|
||||||
|
List<Card> desCreats = new ArrayList<Card>();
|
||||||
for (Card c : game.getCardsIn(ZoneType.Battlefield)) {
|
for (Card c : game.getCardsIn(ZoneType.Battlefield)) {
|
||||||
if (c.isCreature() && c.isPaired()) { // Soulbond unpairing (702.93e) - should not be here
|
if (c.isCreature() && c.isPaired()) { // Soulbond unpairing (702.93e) - should not be here
|
||||||
Card partner = c.getPairedWith();
|
Card partner = c.getPairedWith();
|
||||||
@@ -831,13 +832,13 @@ public class GameAction {
|
|||||||
if (c.isCreature()) {
|
if (c.isCreature()) {
|
||||||
// Rule 704.5f - Destroy (no regeneration) for toughness <= 0
|
// Rule 704.5f - Destroy (no regeneration) for toughness <= 0
|
||||||
if (c.getNetDefense() <= 0) {
|
if (c.getNetDefense() <= 0) {
|
||||||
this.destroyNoRegeneration(c, null);
|
noRegCreats.add(c);
|
||||||
checkAgain = true;
|
checkAgain = true;
|
||||||
} else
|
} else
|
||||||
|
|
||||||
// Rule 704.5g - Destroy due to lethal damage
|
// Rule 704.5g - Destroy due to lethal damage
|
||||||
if (c.getNetDefense() <= c.getDamage()) {
|
if (c.getNetDefense() <= c.getDamage()) {
|
||||||
this.destroy(c, null);
|
desCreats.add(c);
|
||||||
checkAgain = true;
|
checkAgain = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -858,6 +859,13 @@ public class GameAction {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (Card c : noRegCreats) {
|
||||||
|
this.destroyNoRegeneration(c, null);
|
||||||
|
}
|
||||||
|
for (Card c : desCreats) {
|
||||||
|
this.destroy(c, null);
|
||||||
|
}
|
||||||
|
|
||||||
if (game.getTriggerHandler().runWaitingTriggers()) {
|
if (game.getTriggerHandler().runWaitingTriggers()) {
|
||||||
checkAgain = true;
|
checkAgain = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user