mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +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);
|
||||
|
||||
@@ -2154,10 +2149,6 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
||||
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