update wrongly used Capitals

This commit is contained in:
Ingmar Goudt 2018-09-28 15:16:05 +02:00
parent 4c869eb78d
commit e36eb5782b
7 changed files with 10 additions and 10 deletions

View file

@ -73,6 +73,6 @@ enum HadAnotherCreatureEnterTheBattlefieldCondition implements Condition {
PermanentsEnteredBattlefieldWatcher watcher = (PermanentsEnteredBattlefieldWatcher) game.getState().getWatchers().get(PermanentsEnteredBattlefieldWatcher.class.getSimpleName()); PermanentsEnteredBattlefieldWatcher watcher = (PermanentsEnteredBattlefieldWatcher) game.getState().getWatchers().get(PermanentsEnteredBattlefieldWatcher.class.getSimpleName());
return sourcePermanent != null return sourcePermanent != null
&& watcher != null && watcher != null
&& watcher.AnotherCreatureEnteredBattlefieldUnderPlayersControlLastTurn(sourcePermanent, game); && watcher.anotherCreatureEnteredBattlefieldUnderPlayersControlLastTurn(sourcePermanent, game);
} }
} }

View file

@ -32,7 +32,7 @@ public final class GraveScrabbler extends CardImpl {
//you may return target creature card from a graveyard to its owner's hand. //you may return target creature card from a graveyard to its owner's hand.
TriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), true); TriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), true);
ability.addTarget(new TargetCardInGraveyard(new FilterCreatureCard("creature card in a graveyard"))); ability.addTarget(new TargetCardInGraveyard(new FilterCreatureCard("creature card in a graveyard")));
this.addAbility(new ConditionalInterveningIfTriggeredAbility(ability, MadnessAbility.GetCondition(), this.addAbility(new ConditionalInterveningIfTriggeredAbility(ability, MadnessAbility.getCondition(),
"When {this} enters the battlefield, if its madness cost was paid, you may return target creature card from a graveyard to its owner's hand.")); "When {this} enters the battlefield, if its madness cost was paid, you may return target creature card from a graveyard to its owner's hand."));
} }

View file

@ -71,7 +71,7 @@ public class MadnessAbility extends StaticAbility {
return new MadnessAbility(this); return new MadnessAbility(this);
} }
public static Condition GetCondition() { public static Condition getCondition() {
return MadnessCondition.instance; return MadnessCondition.instance;
} }

View file

@ -185,7 +185,7 @@ public abstract class ExpansionSet implements Serializable {
return theBooster; return theBooster;
} }
protected int AddMissingPartner(List<Card> booster, boolean partnerAllowed, int max, int i) { protected int addMissingPartner(List<Card> booster, boolean partnerAllowed, int max, int i) {
for (Ability ability : booster.get(booster.size() - 1).getAbilities()) { for (Ability ability : booster.get(booster.size() - 1).getAbilities()) {
//Check if fetched card has the PartnerWithAbility //Check if fetched card has the PartnerWithAbility
@ -328,7 +328,7 @@ public abstract class ExpansionSet implements Serializable {
for (int i = 0; i < numBoosterUncommon; i++) { for (int i = 0; i < numBoosterUncommon; i++) {
while (true) { while (true) {
addToBooster(booster, uncommons); addToBooster(booster, uncommons);
int check = AddMissingPartner(booster, partnerAllowed, numBoosterUncommon - 1, i); int check = addMissingPartner(booster, partnerAllowed, numBoosterUncommon - 1, i);
if (check == 1) { if (check == 1) {
break; break;
} }
@ -358,7 +358,7 @@ public abstract class ExpansionSet implements Serializable {
if (ratioBoosterMythic > 0 && RandomUtil.nextInt(ratioBoosterMythic) == 0) { if (ratioBoosterMythic > 0 && RandomUtil.nextInt(ratioBoosterMythic) == 0) {
while (true) { while (true) {
addToBooster(booster, mythics); addToBooster(booster, mythics);
int check = AddMissingPartner(booster, partnerAllowed, -1, 1); int check = addMissingPartner(booster, partnerAllowed, -1, 1);
if (check == 1) { if (check == 1) {
break; break;
} }
@ -370,7 +370,7 @@ public abstract class ExpansionSet implements Serializable {
} else { } else {
while (true) { while (true) {
addToBooster(booster, rares); addToBooster(booster, rares);
int check = AddMissingPartner(booster, partnerAllowed, -1, 1); int check = addMissingPartner(booster, partnerAllowed, -1, 1);
if (check == 1) { if (check == 1) {
break; break;
} }

View file

@ -476,7 +476,7 @@ public abstract class TournamentImpl implements Tournament {
@Override @Override
public void cleanUpOnTournamentEnd() { public void cleanUpOnTournamentEnd() {
for (TournamentPlayer tournamentPlayer : players.values()) { for (TournamentPlayer tournamentPlayer : players.values()) {
tournamentPlayer.CleanUpOnTournamentEnd(); tournamentPlayer.cleanUpOnTournamentEnd();
} }
} }

View file

@ -179,7 +179,7 @@ public class TournamentPlayer {
* Free resources no longer needed if tournament has ended * Free resources no longer needed if tournament has ended
* *
*/ */
public void CleanUpOnTournamentEnd() { public void cleanUpOnTournamentEnd() {
this.deck = null; this.deck = null;
} }

View file

@ -71,7 +71,7 @@ public class PermanentsEnteredBattlefieldWatcher extends Watcher {
return enteringBattlefield.get(playerId); return enteringBattlefield.get(playerId);
} }
public boolean AnotherCreatureEnteredBattlefieldUnderPlayersControlLastTurn(Permanent sourcePermanent, Game game) { public boolean anotherCreatureEnteredBattlefieldUnderPlayersControlLastTurn(Permanent sourcePermanent, Game game) {
if (enteringBattlefieldLastTurn.containsKey(sourcePermanent.getControllerId())) { if (enteringBattlefieldLastTurn.containsKey(sourcePermanent.getControllerId())) {
for (Permanent permanent : enteringBattlefieldLastTurn.get(sourcePermanent.getControllerId())) { for (Permanent permanent : enteringBattlefieldLastTurn.get(sourcePermanent.getControllerId())) {
if (!permanent.getId().equals(sourcePermanent.getId()) if (!permanent.getId().equals(sourcePermanent.getId())