mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
removed duplicate code
This commit is contained in:
@@ -87,15 +87,7 @@ public class ChooseTypeEffect extends SpellAbilityEffect {
|
|||||||
for (final String s : invalidTypes) {
|
for (final String s : invalidTypes) {
|
||||||
validChoices.remove(s);
|
validChoices.remove(s);
|
||||||
}
|
}
|
||||||
final Object o = GuiChoose.one("Choose a creature type", validChoices);
|
chosenType = GuiChoose.one("Choose a creature type", validChoices);
|
||||||
if (null == o) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
final String choice = (String) o;
|
|
||||||
if (CardType.isACreatureType(choice) && !invalidTypes.contains(choice)) {
|
|
||||||
valid = true;
|
|
||||||
card.setChosenType(choice);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
Player ai = sa.getActivatingPlayer();
|
Player ai = sa.getActivatingPlayer();
|
||||||
Player opp = ai.getOpponent();
|
Player opp = ai.getOpponent();
|
||||||
|
|||||||
Reference in New Issue
Block a user