mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Added some AI specific for Laboratory Maniac.
This commit is contained in:
@@ -3,7 +3,7 @@ ManaCost:5 W W
|
|||||||
Types:Sorcery
|
Types:Sorcery
|
||||||
K:Epic
|
K:Epic
|
||||||
A:SP$ChangeZone | Cost$ 5 W W | Origin$ Library | Destination$ Battlefield | ChangeType$ Enchantment | ChangeNum$ 1 | SpellDescription$ Search your library for an enchantment card and put it onto the battlefield. Then shuffle your library.
|
A:SP$ChangeZone | Cost$ 5 W W | Origin$ Library | Destination$ Battlefield | ChangeType$ Enchantment | ChangeNum$ 1 | SpellDescription$ Search your library for an enchantment card and put it onto the battlefield. Then shuffle your library.
|
||||||
SVar:RemAIDeck:True
|
SVar:RemRandomDeck:True
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/enduring_ideal.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/enduring_ideal.jpg
|
||||||
Oracle:Search your library for an enchantment card and put it onto the battlefield. Then shuffle your library.\nEpic (For the rest of the game, you can't cast spells. At the beginning of each of your upkeeps, copy this spell except for its epic ability.)
|
Oracle:Search your library for an enchantment card and put it onto the battlefield. Then shuffle your library.\nEpic (For the rest of the game, you can't cast spells. At the beginning of each of your upkeeps, copy this spell except for its epic ability.)
|
||||||
SetInfo:SOK Rare
|
SetInfo:SOK Rare
|
||||||
@@ -191,7 +191,7 @@ public class DrawAi extends SpellAbilityAi {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canTgtHuman && !opp.cantLose() && (numCards >= humanLibrarySize)) {
|
if (canTgtHuman && !opp.cantLose() && numCards >= humanLibrarySize) {
|
||||||
// Deck the Human? DO IT!
|
// Deck the Human? DO IT!
|
||||||
tgt.addTarget(opp);
|
tgt.addTarget(opp);
|
||||||
return true;
|
return true;
|
||||||
@@ -210,8 +210,7 @@ public class DrawAi extends SpellAbilityAi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (((computerHandSize + numCards) > computerMaxHandSize)
|
if (computerHandSize + numCards > computerMaxHandSize && game.getPhaseHandler().isPlayerTurn(ai)) {
|
||||||
&& game.getPhaseHandler().isPlayerTurn(ai)) {
|
|
||||||
if (xPaid) {
|
if (xPaid) {
|
||||||
numCards = computerMaxHandSize - computerHandSize;
|
numCards = computerMaxHandSize - computerHandSize;
|
||||||
source.setSVar("PayX", Integer.toString(numCards));
|
source.setSVar("PayX", Integer.toString(numCards));
|
||||||
@@ -240,6 +239,9 @@ public class DrawAi extends SpellAbilityAi {
|
|||||||
|
|
||||||
// ability is not targeted
|
// ability is not targeted
|
||||||
if (numCards >= computerLibrarySize) {
|
if (numCards >= computerLibrarySize) {
|
||||||
|
if (ai.isCardInPlay("Laboratory Maniac")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
// Don't deck yourself
|
// Don't deck yourself
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user