mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Added Dissipate and it's LQ pic urls. I added the spell name to:
ComputerAI_counterSpells.getPlayableCounterSpells() ComputerAI_counterSpells2.getPlayableCounterSpells(final SpellAbility sa) and the computer can use this spell.
This commit is contained in:
@@ -38,6 +38,7 @@ snow_covered_mountain.jpg http://www.wizards.com/global/images/magic/gene
|
||||
snow_covered_mountain1.jpg http://www.wizards.com/global/images/magic/general/snow_covered_mountain.jpg
|
||||
snow_covered_mountain2.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
|
||||
snow_covered_mountain3.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
|
||||
dissipate.jpg http://www.wizards.com/global/images/magic/general/dissipate.jpg
|
||||
all_is_dust.jpg http://www.wizards.com/global/images/magic/general/all_is_dust.jpg
|
||||
tranquil_path.jpg http://www.wizards.com/global/images/magic/general/tranquil_path.jpg
|
||||
buried_alive.jpg http://www.wizards.com/global/images/magic/general/buried_alive.jpg
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
Dissipate
|
||||
1 U U
|
||||
Instant
|
||||
Counter target spell. If that spell is countered this way, exile it instead of putting it into its owner's graveyard.
|
||||
|
||||
All is Dust
|
||||
7
|
||||
Tribal Sorcery Eldrazi
|
||||
|
||||
@@ -18906,6 +18906,35 @@ public class CardFactory implements NewConstants {
|
||||
card.addSpellAbility(spell);
|
||||
}// *************** END ************ END **************************
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Dissipate")) {
|
||||
SpellAbility spell = new Spell(card) {
|
||||
private static final long serialVersionUID = 4165714000804564686L;
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
//counter spell, remove it from the game
|
||||
SpellAbility sa = AllZone.Stack.pop();
|
||||
PlayerZone rfg = AllZone.getZone(Constant.Zone.Removed_From_Play, sa.getSourceCard().getOwner());
|
||||
AllZone.GameAction.moveTo(rfg, sa.getSourceCard());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPlay() {
|
||||
if(AllZone.Stack.size() == 0) return false;
|
||||
|
||||
//see if spell is on stack and that opponent played it
|
||||
String opponent = AllZone.GameAction.getOpponent(card.getController());
|
||||
SpellAbility sa = AllZone.Stack.peek();
|
||||
|
||||
return sa.isSpell() && opponent.equals(sa.getSourceCard().getController())
|
||||
&& CardFactoryUtil.isCounterable(sa.getSourceCard());
|
||||
}
|
||||
};
|
||||
card.clearSpellAbility();
|
||||
card.addSpellAbility(spell);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
// Cards with Cycling abilities
|
||||
// -1 means keyword "Cycling" not found
|
||||
if(hasKeyword(card, "Cycling") != -1) {
|
||||
|
||||
@@ -89,7 +89,7 @@ public class ComputerAI_counterSpells {
|
||||
c.getName().equals("Remand") || c.getName().equals("Mystic Snake") ||
|
||||
c.getName().equals("Absorb") || c.getName().equals("Undermine") ||
|
||||
c.getName().equals("Punish Ignorance") || c.getName().equals("Dismiss") ||
|
||||
c.getName().equals("Last Word")
|
||||
c.getName().equals("Last Word") || c.getName().equals("Dissipate")
|
||||
&& ComputerUtil.canPayCost(sa);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -25,7 +25,7 @@ public class ComputerAI_counterSpells2 {
|
||||
public static CardList getPlayableCounterSpells(final SpellAbility sa){
|
||||
final String[] basic = {
|
||||
"Counterspell", "Remand", "Cancel", "Mystic Snake", "Absorb", "Undermine", "Punish Ignorance",
|
||||
"Dismiss", "Last Word" /*, "Force of Will", "Thwart" */
|
||||
"Dismiss", "Last Word", "Dissipate" /*, "Force of Will", "Thwart" */
|
||||
};
|
||||
|
||||
final String[] creature = {
|
||||
|
||||
Reference in New Issue
Block a user