mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Improve flashback zone display
This commit is contained in:
@@ -63,6 +63,8 @@ public class PlayerZone extends Zone {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean graveyardCastable = c.hasKeyword(Keyword.FLASHBACK) ||
|
||||||
|
c.hasKeyword(Keyword.RETRACE) || c.hasKeyword(Keyword.JUMP_START);
|
||||||
for (final SpellAbility sa : c.getSpellAbilities()) {
|
for (final SpellAbility sa : c.getSpellAbilities()) {
|
||||||
final ZoneType restrictZone = sa.getRestrictions().getZone();
|
final ZoneType restrictZone = sa.getRestrictions().getZone();
|
||||||
|
|
||||||
@@ -76,7 +78,7 @@ public class PlayerZone extends Zone {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sa.isSpell()
|
if (sa.isSpell()
|
||||||
&& (c.hasKeyword(Keyword.FLASHBACK) && PlayerZone.this.is(ZoneType.Graveyard))
|
&& (graveyardCastable && PlayerZone.this.is(ZoneType.Graveyard))
|
||||||
&& restrictZone.equals(ZoneType.Hand)) {
|
&& restrictZone.equals(ZoneType.Hand)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user