mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Added a hack that prevents Isochron Scepter with Counterspell / Stifle from being used when it's not appropriate.
This commit is contained in:
@@ -18366,6 +18366,23 @@ public class CardFactory implements NewConstants {
|
|||||||
}
|
}
|
||||||
else AllZone.GameAction.playCardNoCost(c);
|
else AllZone.GameAction.playCardNoCost(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean canPlay()
|
||||||
|
{
|
||||||
|
if (getSourceCard().getAttachedCards().length > 0)
|
||||||
|
{
|
||||||
|
Card c = copyCard(getSourceCard().getAttachedCards()[0]);
|
||||||
|
if (c.getName().equals("Counterspell") || c.getName().equals("Stifle"))
|
||||||
|
{
|
||||||
|
SpellAbility sa = c.getSpellAbility()[0];
|
||||||
|
return sa.canPlay();
|
||||||
|
}
|
||||||
|
else return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean canPlayAI()
|
public boolean canPlayAI()
|
||||||
{
|
{
|
||||||
if (getSourceCard().getAttachedCards().length == 0)
|
if (getSourceCard().getAttachedCards().length == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user