mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
reveting incorrect implmentation of damage dealt by general calculation
This commit is contained in:
@@ -88,8 +88,6 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
|||||||
/** The poison counters. */
|
/** The poison counters. */
|
||||||
private int poisonCounters = 0;
|
private int poisonCounters = 0;
|
||||||
|
|
||||||
private int edhGeneralDamage = 0;
|
|
||||||
|
|
||||||
/** The life. */
|
/** The life. */
|
||||||
private int life = 20;
|
private int life = 20;
|
||||||
|
|
||||||
@@ -644,9 +642,6 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.assignedDamage.put(source, damageToDo);
|
this.assignedDamage.put(source, damageToDo);
|
||||||
if(source.isCommander())
|
|
||||||
this.edhGeneralDamage+= damageToDo;
|
|
||||||
|
|
||||||
GameActionUtil.executeDamageDealingEffects(source, damageToDo);
|
GameActionUtil.executeDamageDealingEffects(source, damageToDo);
|
||||||
GameActionUtil.executeDamageToPlayerEffects(this, source, damageToDo);
|
GameActionUtil.executeDamageToPlayerEffects(this, source, damageToDo);
|
||||||
|
|
||||||
@@ -2153,10 +2148,6 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
|||||||
if (hasNoLife && !this.cantLoseForZeroOrLessLife()) {
|
if (hasNoLife && !this.cantLoseForZeroOrLessLife()) {
|
||||||
return this.loseConditionMet(GameLossReason.LifeReachedZero, null);
|
return this.loseConditionMet(GameLossReason.LifeReachedZero, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.edhGeneralDamage >= 21) {
|
|
||||||
return this.loseConditionMet(GameLossReason.EdhGeneralDamage, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user