mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
fix up mill function calls.
This commit is contained in:
@@ -10069,7 +10069,7 @@ public class CardFactory implements NewConstants {
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
AllZone.GameAction.mill(getTargetPlayer(), millCards);
|
||||
getTargetPlayer().mill(millCards);
|
||||
}
|
||||
};
|
||||
ab1.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
||||
@@ -10631,8 +10631,7 @@ public class CardFactory implements NewConstants {
|
||||
@Override
|
||||
public void resolve() {
|
||||
Player player = getTargetPlayer();
|
||||
AllZone.GameAction.mill(player,
|
||||
AllZone.getZone(Constant.Zone.Graveyard, player).size());
|
||||
player.mill(AllZone.getZone(Constant.Zone.Graveyard, player).size());
|
||||
}
|
||||
};
|
||||
ab1.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
||||
|
||||
@@ -1470,16 +1470,12 @@ public class CardFactory_Instants {
|
||||
|
||||
@Override
|
||||
public void chooseTargetAI() {
|
||||
|
||||
setTargetPlayer(AllZone.HumanPlayer);
|
||||
|
||||
}//chooseTargetAI()
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
|
||||
AllZone.GameAction.mill(getTargetPlayer(),3);
|
||||
|
||||
getTargetPlayer().mill(3);
|
||||
}//resolve()
|
||||
};//SpellAbility
|
||||
|
||||
|
||||
@@ -2578,7 +2578,7 @@ class CardFactory_Lands {
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
AllZone.GameAction.mill(getTargetPlayer(),1);
|
||||
getTargetPlayer().mill(1);
|
||||
}
|
||||
};
|
||||
ability.setBeforePayMana(CardFactoryUtil.input_targetPlayer(ability));
|
||||
|
||||
@@ -1864,7 +1864,7 @@ class CardFactory_Planeswalkers {
|
||||
card2.subtractCounter(Counters.LOYALTY, 10);
|
||||
|
||||
turn[0] = AllZone.Phase.getTurn();
|
||||
AllZone.GameAction.mill(getTargetPlayer(),20);
|
||||
getTargetPlayer().mill(20);
|
||||
|
||||
}//resolve()
|
||||
|
||||
|
||||
@@ -4598,8 +4598,7 @@ public class CardFactory_Sorceries {
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
AllZone.GameAction.mill(getTargetPlayer(),
|
||||
(cardName.equals("Glimpse the Unthinkable")) ? 10 : 5);
|
||||
getTargetPlayer().mill((cardName.equals("Glimpse the Unthinkable")) ? 10 : 5);
|
||||
}
|
||||
};//SpellAbility
|
||||
spell.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
||||
@@ -5605,7 +5604,7 @@ public class CardFactory_Sorceries {
|
||||
|
||||
public void resolve()
|
||||
{
|
||||
AllZone.GameAction.mill(getTargetPlayer(),card.getXManaCostPaid());
|
||||
getTargetPlayer().mill(card.getXManaCostPaid());
|
||||
|
||||
card.getController().gainLife(card.getXManaCostPaid(), card);
|
||||
|
||||
|
||||
@@ -1737,7 +1737,7 @@ public class CombatUtil {
|
||||
}//Preeminent Captain
|
||||
|
||||
else if(c.getName().equals("Nemesis of Reason") && !c.getCreatureAttackedThisCombat()) {
|
||||
AllZone.GameAction.mill( c.getController().getOpponent(),10);
|
||||
c.getController().getOpponent().mill(10);
|
||||
}//Nemesis of Reason
|
||||
|
||||
else if(c.getName().equals("Novablast Wurm") && !c.getCreatureAttackedThisCombat()) {
|
||||
|
||||
Reference in New Issue
Block a user