If both sides have 0 strength, the result is not an overwhelm.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user