mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Fix crash with Lens of Clarity.
This commit is contained in:
@@ -25,6 +25,8 @@ import java.util.Map.Entry;
|
|||||||
import javax.swing.JLabel;
|
import javax.swing.JLabel;
|
||||||
import javax.swing.ScrollPaneConstants;
|
import javax.swing.ScrollPaneConstants;
|
||||||
|
|
||||||
|
import com.beust.jcommander.internal.Lists;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import forge.gui.framework.DragCell;
|
import forge.gui.framework.DragCell;
|
||||||
import forge.gui.framework.DragTab;
|
import forge.gui.framework.DragTab;
|
||||||
@@ -153,7 +155,7 @@ public enum VPlayers implements IVDoc<CPlayers> {
|
|||||||
temp[2].setText("Maximum hand size: " + String.valueOf(p0.getMaxHandSize()));
|
temp[2].setText("Maximum hand size: " + String.valueOf(p0.getMaxHandSize()));
|
||||||
temp[3].setText("Cards drawn this turn: " + String.valueOf(p0.getNumDrawnThisTurn()));
|
temp[3].setText("Cards drawn this turn: " + String.valueOf(p0.getNumDrawnThisTurn()));
|
||||||
temp[4].setText("Damage Prevention: " + String.valueOf(p0.getPreventNextDamage()));
|
temp[4].setText("Damage Prevention: " + String.valueOf(p0.getPreventNextDamage()));
|
||||||
List<String> keywords = p0.getKeywords();
|
List<String> keywords = Lists.newArrayList(p0.getKeywords());
|
||||||
while (keywords.indexOf("CanSeeOpponentsFaceDownCards") != -1) {
|
while (keywords.indexOf("CanSeeOpponentsFaceDownCards") != -1) {
|
||||||
keywords.remove("CanSeeOpponentsFaceDownCards");
|
keywords.remove("CanSeeOpponentsFaceDownCards");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user