Fix - GreatestPowerGreatestPowerCountCreatureYouControl was using GreatestPowerCount on copy operation instead of new GreatestPowerCountCreatureYouControl. Fixed naming issue on those two classes as well

This commit is contained in:
JOAC69 2016-09-24 23:56:11 -05:00
parent 0ee3d6c662
commit 97bf274fc8
2 changed files with 6 additions and 6 deletions

View file

@ -66,7 +66,7 @@ public class PrimeSpeakerZegana extends CardImpl {
//Prime Speaker Zegana enters the battlefield with X +1/+1 counters on it, where X is the greatest power among other creatures you control.
this.addAbility(new EntersBattlefieldAbility(
new AddCountersSourceEffect(CounterType.P1P1.createInstance(0),
new greatestPowerCount(), true),
new GreatestPowerCount(), true),
"where X is the greatest power among other creatures you control"));
//When Prime Speaker Zegana enters the battlefield, draw cards equal to its power.
this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(new SourcePermanentPowerCount())));
@ -82,7 +82,7 @@ public class PrimeSpeakerZegana extends CardImpl {
}
}
class greatestPowerCount implements DynamicValue {
class GreatestPowerCount implements DynamicValue {
@Override
@ -98,7 +98,7 @@ class greatestPowerCount implements DynamicValue {
@Override
public DynamicValue copy() {
return new greatestPowerCount();
return new GreatestPowerCount();
}
@Override

View file

@ -96,7 +96,7 @@ class SpellRuptureCounterUnlessPaysEffect extends OneShotEffect {
Player controller = game.getPlayer(source.getControllerId());
MageObject sourceObject = game.getObject(source.getSourceId());
if (player != null && controller != null && sourceObject != null) {
int amount = new greatestPowerCountCreatureYouControl().calculate(game, source, this);
int amount = new GreatestPowerCountCreatureYouControl().calculate(game, source, this);
GenericManaCost cost = new GenericManaCost(amount);
StringBuilder sb = new StringBuilder("Pay {").append(amount).append("}? (otherwise ").append(spell.getName()).append(" will be countered)");
if (player.chooseUse(Outcome.Benefit, sb.toString(), source, game)) {
@ -120,7 +120,7 @@ class SpellRuptureCounterUnlessPaysEffect extends OneShotEffect {
}
}
class greatestPowerCountCreatureYouControl implements DynamicValue {
class GreatestPowerCountCreatureYouControl implements DynamicValue {
@Override
public int calculate(Game game, Ability sourceAbility, Effect effect) {
@ -135,7 +135,7 @@ class greatestPowerCountCreatureYouControl implements DynamicValue {
@Override
public DynamicValue copy() {
return new greatestPowerCount();
return new GreatestPowerCountCreatureYouControl();
}
@Override