mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +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. */
|
||||
private int poisonCounters = 0;
|
||||
|
||||
private int edhGeneralDamage = 0;
|
||||
|
||||
/** The life. */
|
||||
private int life = 20;
|
||||
|
||||
@@ -644,9 +642,6 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
||||
}
|
||||
|
||||
this.assignedDamage.put(source, damageToDo);
|
||||
if(source.isCommander())
|
||||
this.edhGeneralDamage+= damageToDo;
|
||||
|
||||
GameActionUtil.executeDamageDealingEffects(source, damageToDo);
|
||||
GameActionUtil.executeDamageToPlayerEffects(this, source, damageToDo);
|
||||
|
||||
@@ -2153,10 +2148,6 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
||||
if (hasNoLife && !this.cantLoseForZeroOrLessLife()) {
|
||||
return this.loseConditionMet(GameLossReason.LifeReachedZero, null);
|
||||
}
|
||||
|
||||
if(this.edhGeneralDamage >= 21) {
|
||||
return this.loseConditionMet(GameLossReason.EdhGeneralDamage, null);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user