mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Moved Cantrip check after sa.resolve().
Added Scry check after Cantrip check.
This commit is contained in:
@@ -93,12 +93,22 @@ private static Random random = new Random();
|
|||||||
if(sa instanceof Ability_Tap)
|
if(sa instanceof Ability_Tap)
|
||||||
sa.getSourceCard().tap();
|
sa.getSourceCard().tap();
|
||||||
|
|
||||||
if (sa.getSourceCard().getKeyword().contains("Draw a card."))
|
|
||||||
AllZone.GameAction.drawCard(sa.getSourceCard().getController());
|
|
||||||
|
|
||||||
payManaCost(sa);
|
payManaCost(sa);
|
||||||
sa.resolve();
|
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..
|
//destroys creatures if they have lethal damage, etc..
|
||||||
AllZone.GameAction.checkStateEffects();
|
AllZone.GameAction.checkStateEffects();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user