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