mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
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:
parent
0ee3d6c662
commit
97bf274fc8
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue