mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- The AI will now anticipate effects with "Damage that would reduce your life total to less than 1 reduces it to 1 instead.".
This commit is contained in:
@@ -801,6 +801,10 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
||||
|
||||
int restDamage = damage;
|
||||
|
||||
if (this.hasKeyword("Damage that would reduce your life total to less than 1 reduces it to 1 instead.")) {
|
||||
restDamage = Math.min(restDamage, this.life - 1);
|
||||
}
|
||||
|
||||
for (Card c : game.getCardsIn(ZoneType.Battlefield)) {
|
||||
if (c.getName().equals("Sulfuric Vapors")) {
|
||||
if (source.isSpell() && source.isRed()) {
|
||||
|
||||
Reference in New Issue
Block a user