mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Fixed implementation of game rule 704.5f (creatures with 0 toughness aren't "destroyed").
This commit is contained in:
@@ -858,7 +858,7 @@ public class GameAction {
|
|||||||
List<Card> desCreats = 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()) {
|
if (c.isCreature()) {
|
||||||
// Rule 704.5f - Destroy (no regeneration) for toughness <= 0
|
// Rule 704.5f - Put into grave (no regeneration) for toughness <= 0
|
||||||
if (c.getNetDefense() <= 0) {
|
if (c.getNetDefense() <= 0) {
|
||||||
noRegCreats.add(c);
|
noRegCreats.add(c);
|
||||||
checkAgain = true;
|
checkAgain = true;
|
||||||
@@ -895,7 +895,7 @@ public class GameAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (Card c : noRegCreats) {
|
for (Card c : noRegCreats) {
|
||||||
this.destroyNoRegeneration(c, null);
|
this.sacrificeDestroy(c);
|
||||||
}
|
}
|
||||||
for (Card c : desCreats) {
|
for (Card c : desCreats) {
|
||||||
this.destroy(c, null);
|
this.destroy(c, null);
|
||||||
|
|||||||
Reference in New Issue
Block a user