Moved Cantrip check after sa.resolve().

Added Scry check after Cantrip check.
This commit is contained in:
jendave
2011-08-06 03:15:10 +00:00
parent 5851e04f01
commit b984859c77

View File

@@ -92,13 +92,23 @@ private static Random random = new Random();
if(sa instanceof Ability_Tap)
sa.getSourceCard().tap();
if (sa.getSourceCard().getKeyword().contains("Draw a card."))
AllZone.GameAction.drawCard(sa.getSourceCard().getController());
payManaCost(sa);
sa.resolve();
if (sa.getSourceCard().getKeyword().contains("Draw a card."))
AllZone.GameAction.drawCard(sa.getSourceCard().getController());
for (int i=0; i<sa.getSourceCard().getKeyword().size(); i++)
{
String k = sa.getSourceCard().getKeyword().get(i);
if (k.startsWith("Scry"))
{
String kk[] = k.split(" ");
AllZone.GameAction.scry(sa.getSourceCard().getController(), Integer.parseInt(kk[1]));
}
}
//destroys creatures if they have lethal damage, etc..
AllZone.GameAction.checkStateEffects();
}