If both sides have 0 strength, the result is not an overwhelm.

This commit is contained in:
marcins78@gmail.com
2011-10-25 15:16:42 +00:00
parent b9a63600b8
commit fdf02bdea0
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ public class OverwhelmedByMultiplierModifier extends AbstractModifier {
@Override
public boolean isOverwhelmedByStrength(GameState gameState, ModifiersQuerying modifiersLogic, PhysicalCard physicalCard, int strength, int opposingStrength) {
return (opposingStrength >= strength * _multiplier);
return (opposingStrength >= strength * _multiplier) && (opposingStrength != 0);
}
}

View File

@@ -319,7 +319,7 @@ public class ModifiersLogic implements ModifiersEnvironment, ModifiersQuerying {
if (!modifier.isOverwhelmedByStrength(gameState, this, card, strength, opposingStrength))
return false;
}
return (opposingStrength >= strength * 2);
return (opposingStrength >= strength * 2) && (opposingStrength != 0);
}
@Override