mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
NPE from rarity (dev mode: Put two Nicol Bolas in graveyard, cast animate dead to return 1st Nicol Bolas to play, then cast Rise from the grave to return the 2nd Nicol Bolas to play, then choose the 2nd Nicol Bolas to stay on the battlefield)
This commit is contained in:
@@ -120,6 +120,8 @@ public class CardRenderer {
|
||||
}
|
||||
|
||||
public static Color getRarityColor(CardRarity rarity) {
|
||||
if (rarity == null)// NPE from Rarity weird...
|
||||
return Color.CLEAR;
|
||||
switch(rarity) {
|
||||
case Uncommon:
|
||||
return fromDetailColor(DetailColors.UNCOMMON);
|
||||
|
||||
Reference in New Issue
Block a user