Archery total calculating only in archery phase.

This commit is contained in:
marcins78@gmail.com
2012-04-11 14:47:47 +00:00
parent 9234a1f344
commit 593fcf8bad

View File

@@ -45,13 +45,13 @@ public class GameStats {
if (game.getGameState().getCurrentPhase() == Phase.ARCHERY) {
int newFellowshipArcheryTotal = RuleUtils.calculateFellowshipArcheryTotal(game);
if (newFellowshipArcheryTotal != _fellowshipArchery) {
if (_fellowshipArchery == null || newFellowshipArcheryTotal != _fellowshipArchery) {
changed = true;
_fellowshipArchery = newFellowshipArcheryTotal;
}
int newShadowArcheryTotal = RuleUtils.calculateShadowArcheryTotal(game);
if (newShadowArcheryTotal != _shadowArchery) {
if (_shadowArchery == null || newShadowArcheryTotal != _shadowArchery) {
changed = true;
_shadowArchery = newShadowArcheryTotal;
}