- Added a hack that prevents Isochron Scepter with Counterspell / Stifle from being used when it's not appropriate.

This commit is contained in:
jendave
2011-08-06 04:56:02 +00:00
parent b011c46117
commit 077e4c469b

View File

@@ -18366,6 +18366,23 @@ public class CardFactory implements NewConstants {
}
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()
{
if (getSourceCard().getAttachedCards().length == 0)