mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Whispers of the Muse, Treasure Trove: added AILogic$ AlwaysAtOppEOT as it's a more optimal default timing for this effect.
This commit is contained in:
@@ -356,7 +356,7 @@ public class CountersPutAi extends SpellAbilityAi {
|
|||||||
PhaseHandler ph = ai.getGame().getPhaseHandler();
|
PhaseHandler ph = ai.getGame().getPhaseHandler();
|
||||||
|
|
||||||
if ("AlwaysAtOppEOT".equals(sa.getParam("AILogic"))) {
|
if ("AlwaysAtOppEOT".equals(sa.getParam("AILogic"))) {
|
||||||
if (ph.is(PhaseType.END_OF_TURN) && !ph.isPlayerTurn(ai)) {
|
if (ph.is(PhaseType.END_OF_TURN) && ph.getNextTurn().equals(ai)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,10 +126,14 @@ public class DrawAi extends SpellAbilityAi {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected boolean checkPhaseRestrictions(Player ai, SpellAbility sa, PhaseHandler ph) {
|
protected boolean checkPhaseRestrictions(Player ai, SpellAbility sa, PhaseHandler ph) {
|
||||||
// LifeLessThan logic presupposes activation as soon as possible in an
|
String logic = sa.getParamOrDefault("AILogic", "");
|
||||||
// attempt to save the AI from dying
|
|
||||||
if (sa.hasParam("AILogic") && sa.getParam("AILogic").startsWith("LifeLessThan.")) {
|
if (logic.startsWith("LifeLessThan.")) {
|
||||||
|
// LifeLessThan logic presupposes activation as soon as possible in an
|
||||||
|
// attempt to save the AI from dying
|
||||||
return true;
|
return true;
|
||||||
|
} else if (logic.equals("AtEndOfOppTurn")) {
|
||||||
|
return ph.is(PhaseType.END_OF_TURN) && ph.getNextTurn().equals(ai);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't use draw abilities before main 2 if possible
|
// Don't use draw abilities before main 2 if possible
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Name:Treasure Trove
|
Name:Treasure Trove
|
||||||
ManaCost:2 U U
|
ManaCost:2 U U
|
||||||
Types:Enchantment
|
Types:Enchantment
|
||||||
A:AB$ Draw | Cost$ 2 U U | NumCards$ 1 | SpellDescription$ Draw a card.
|
A:AB$ Draw | Cost$ 2 U U | NumCards$ 1 | AILogic$ AlwaysAtOppEOT | SpellDescription$ Draw a card.
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/treasure_trove.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/treasure_trove.jpg
|
||||||
Oracle:{2}{U}{U}: Draw a card.
|
Oracle:{2}{U}{U}: Draw a card.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Name:Whispers of the Muse
|
Name:Whispers of the Muse
|
||||||
ManaCost:U
|
ManaCost:U
|
||||||
Types:Instant
|
Types:Instant
|
||||||
A:SP$ Draw | Cost$ U | NumCards$ 1 | SpellDescription$ Draw a card.
|
A:SP$ Draw | Cost$ U | NumCards$ 1 | AILogic$ AlwaysAtOppEOT | SpellDescription$ Draw a card.
|
||||||
K:Buyback 5
|
K:Buyback 5
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/whispers_of_the_muse.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/whispers_of_the_muse.jpg
|
||||||
Oracle:Buyback {5} (You may pay an additional {5} as you cast this spell. If you do, put this card into your hand as it resolves.)\nDraw a card.
|
Oracle:Buyback {5} (You may pay an additional {5} as you cast this spell. If you do, put this card into your hand as it resolves.)\nDraw a card.
|
||||||
|
|||||||
Reference in New Issue
Block a user