mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Fixed Karmic Guide.
- Eviscerator should only be played by the AI if his lifetotal is larger than 7. - Fixed Merfolk Sovereign AI targeting. - Fixed Sarkhan Vol second ability. - Added some code to Knight of the Reliquary which should make it attack more often.
This commit is contained in:
@@ -8908,7 +8908,6 @@ public class CardFactory implements NewConstants {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//"Destroy target nonbasic land",
|
||||
if(userChoice.contains(cardChoice[2]))
|
||||
AllZone.GameAction.destroy(m_land[0]);
|
||||
|
||||
@@ -3072,6 +3072,17 @@ public class CardFactory_Creatures {
|
||||
}
|
||||
};
|
||||
card.addComesIntoPlayCommand(intoPlay);
|
||||
|
||||
card.clearSpellAbility();
|
||||
card.addSpellAbility(new Spell_Permanent(card)
|
||||
{
|
||||
private static final long serialVersionUID = 7053381164164384390L;
|
||||
|
||||
public boolean canPlayAI()
|
||||
{
|
||||
return 8 <= AllZone.Computer_Life.getLife();
|
||||
}
|
||||
});
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
@@ -10050,7 +10061,6 @@ public class CardFactory_Creatures {
|
||||
else if(cardName.equals("Sparkspitter"))
|
||||
{
|
||||
|
||||
|
||||
final Ability_Tap ability = new Ability_Tap(card, "R")
|
||||
{
|
||||
private static final long serialVersionUID = -6381252527344512333L;
|
||||
@@ -12025,7 +12035,7 @@ public class CardFactory_Creatures {
|
||||
landInLib = landInLib.getType("Land");
|
||||
landInPlay = landInPlay.getType("Land");
|
||||
|
||||
if (landInLib.size() > 0 && landInPlay.size() > 0)
|
||||
if (landInLib.size() > 0 && landInPlay.size() > 0 && (AllZone.Phase.getPhase().equals("Main2") || card.getNetAttack() < 5) )
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
@@ -16822,16 +16832,18 @@ public class CardFactory_Creatures {
|
||||
{
|
||||
private static final long serialVersionUID = -4663016921034366082L;
|
||||
|
||||
public boolean canPlayAI() {return getMerfolk().size() != 0;}
|
||||
|
||||
public void chooseTargetAI()
|
||||
{
|
||||
AllZone.GameAction.sacrifice(card);
|
||||
|
||||
CardList merfolk = getMerfolk();
|
||||
merfolk.shuffle();
|
||||
setTargetCard(merfolk.get(0));
|
||||
}
|
||||
public boolean canPlayAI()
|
||||
{
|
||||
//return getMerfolk().size() != 0;
|
||||
if (getMerfolk().size() > 0)
|
||||
{
|
||||
CardList merfolk = getMerfolk();
|
||||
merfolk.shuffle();
|
||||
setTargetCard(merfolk.get(0));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
CardList getMerfolk()
|
||||
{
|
||||
|
||||
@@ -2717,6 +2717,7 @@ class CardFactory_Planeswalkers {
|
||||
if(AllZone.GameAction.isCardInPlay(getTargetCard()) && CardFactoryUtil.canTarget(card2, getTargetCard()) )
|
||||
{
|
||||
card2.subtractCounter(Counters.LOYALTY, 2);
|
||||
turn[0] = AllZone.Phase.getTurn();
|
||||
|
||||
orig[0] = AllZone.getZone(getTargetCard());
|
||||
controllerEOT[0] = getTargetCard().getController();
|
||||
@@ -2817,7 +2818,7 @@ class CardFactory_Planeswalkers {
|
||||
ability3.setStackDescription(card2.getName() +" - Put five 4/4 red Dragon creature tokens with flying onto the battlefield.");
|
||||
ability3.setDescription("-6: Put five 4/4 red Dragon creature tokens with flying onto the battlefield.");
|
||||
card2.addSpellAbility(ability3);
|
||||
//end ability 2
|
||||
//end ability 3
|
||||
|
||||
return card2;
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
@@ -39,14 +39,6 @@ import javax.swing.UIManager;
|
||||
import javax.swing.UIManager.LookAndFeelInfo;
|
||||
import javax.swing.border.Border;
|
||||
import javax.swing.border.TitledBorder;
|
||||
|
||||
//import com.nilo.plaf.nimrod.NimRODLookAndFeel;
|
||||
|
||||
//import net.sourceforge.napkinlaf.NapkinLookAndFeel;
|
||||
//import net.sourceforge.napkinlaf.NapkinTheme;
|
||||
|
||||
//import org.jvnet.substance.SubstanceLookAndFeel;
|
||||
|
||||
import forge.error.ErrorViewer;
|
||||
import forge.error.ExceptionHandler;
|
||||
import forge.gui.ListChooser;
|
||||
|
||||
Reference in New Issue
Block a user