mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Refactor
This commit is contained in:
@@ -700,14 +700,13 @@ public class CardPanel extends SkinnedPanel implements CardContainer, IDisposabl
|
|||||||
else {
|
else {
|
||||||
String keywordKey = card.getCurrentState().getKeywordKey();
|
String keywordKey = card.getCurrentState().getKeywordKey();
|
||||||
String abilityText = card.getCurrentState().getAbilityText();
|
String abilityText = card.getCurrentState().getAbilityText();
|
||||||
if ((keywordKey.indexOf("Flash") != -1)
|
if (((keywordKey.indexOf("Flashback") == -1)
|
||||||
|
&& (keywordKey.indexOf("Flash") != -1))
|
||||||
|| ((abilityText.indexOf("May be played by") != -1)
|
|| ((abilityText.indexOf("May be played by") != -1)
|
||||||
&& (abilityText.indexOf("and as though it has flash") != -1))){
|
&& (abilityText.indexOf("and as though it has flash") != -1))) {
|
||||||
if (keywordKey.indexOf("Flashback") == -1) {
|
|
||||||
hasFlash = !card.isFaceDown() && ((!ZoneType.Library.equals(card.getZone()) && !ZoneType.Hand.equals(card.getZone())) || matchUI.mayView(card));
|
hasFlash = !card.isFaceDown() && ((!ZoneType.Library.equals(card.getZone()) && !ZoneType.Hand.equals(card.getZone())) || matchUI.mayView(card));
|
||||||
if (hasFlash) {
|
if (hasFlash) {
|
||||||
CardFaceSymbols.drawAbilitySymbol("flash", g, cardXOffset + (cardWidth / 2) + (cardWidth / 3), cardWidth < 200 ? cardYOffset + 25 : cardYOffset + 50, cardWidth / 7, cardWidth / 7);
|
CardFaceSymbols.drawAbilitySymbol("flash", g, cardXOffset + (cardWidth / 2) + (cardWidth / 3), cardWidth < 200 ? cardYOffset + 25 : cardYOffset + 50, cardWidth / 7, cardWidth / 7);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user