reveting incorrect implmentation of damage dealt by general calculation

This commit is contained in:
Maxmtg
2013-04-02 06:20:21 +00:00
parent 3d57a98d3c
commit 2e98741d87

View File

@@ -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;
}