mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
tests for reported bug Rabid Elephant. typo fixes
This commit is contained in:
parent
ae66db20ad
commit
eb9747d0d1
4 changed files with 54 additions and 8 deletions
|
|
@ -38,21 +38,21 @@ import mage.game.Game;
|
|||
public class MultipliedValue implements DynamicValue {
|
||||
|
||||
private final DynamicValue value;
|
||||
private final int multplier;
|
||||
private final int multiplier;
|
||||
|
||||
public MultipliedValue(DynamicValue value, int multiplier) {
|
||||
this.value = value.copy();
|
||||
this.multplier = multiplier;
|
||||
this.multiplier = multiplier;
|
||||
}
|
||||
|
||||
MultipliedValue(final MultipliedValue dynamicValue) {
|
||||
this.value = dynamicValue.value.copy();
|
||||
this.multplier = dynamicValue.multplier;
|
||||
this.multiplier = dynamicValue.multiplier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
return multplier * value.calculate(game, sourceAbility, effect);
|
||||
return multiplier * value.calculate(game, sourceAbility, effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -63,10 +63,10 @@ public class MultipliedValue implements DynamicValue {
|
|||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (multplier == 2) {
|
||||
if (multiplier == 2) {
|
||||
sb.append("twice ");
|
||||
} else {
|
||||
sb.append(multplier).append(" * ");
|
||||
sb.append(multiplier).append(" * ");
|
||||
}
|
||||
return sb.append(value.toString()).toString();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,8 +50,9 @@ public class BlockedCreatureCount implements DynamicValue {
|
|||
this(message, false);
|
||||
}
|
||||
|
||||
public BlockedCreatureCount(String message, boolean beyondTheFist) {
|
||||
public BlockedCreatureCount(String message, boolean beyondTheFirst) {
|
||||
this.message = message;
|
||||
this.beyondTheFirst = beyondTheFirst;
|
||||
}
|
||||
|
||||
public BlockedCreatureCount(final BlockedCreatureCount dynamicValue) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue