mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Moved Cantrip check after sa.resolve().
Added Scry check after Cantrip check.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user