add Brightstone Ritual (from Onslaught)

This commit is contained in:
jendave
2011-08-06 11:16:51 +00:00
parent cb63b2566d
commit 469e897d5e
3 changed files with 34 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -628,6 +628,7 @@ res/cardsfolder/briarhorn.txt -text svneol=native#text/plain
res/cardsfolder/bribery.txt -text svneol=native#text/plain
res/cardsfolder/bridge_from_below.txt -text svneol=native#text/plain
res/cardsfolder/brighthearth_banneret.txt -text svneol=native#text/plain
res/cardsfolder/brightstone_ritual.txt -text svneol=native#text/plain
res/cardsfolder/brilliant_halo.txt -text svneol=native#text/plain
res/cardsfolder/brilliant_plan.txt -text svneol=native#text/plain
res/cardsfolder/brilliant_ultimatum.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,8 @@
Name:Brightstone Ritual
ManaCost:R
Types:Instant
Text:Add R to your mana pool for each Goblin on the battlefield.
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/brightstone_ritual.jpg
End

View File

@@ -4948,6 +4948,31 @@ public class CardFactory_Instants {
card.addSpellAbility(spell);
}//*************** END ************ END **************************
//*************** START *********** START **************************
if(cardName.equals("Brightstone Ritual")) {
final SpellAbility spell = new Spell(card) {
private static final long serialVersionUID = 7081747227572709229L;
@Override
public boolean canPlayAI() {
//Compy doesn't have a mana pool, so can't play this spell
return false;
}
@Override
public void resolve() {
CardList goblins = AllZoneUtil.getTypeInPlay("Goblin");
StringBuilder mana = new StringBuilder();
for(int i = 0; i < goblins.size(); i++) {
mana.append("R ");
}
Card mp = AllZone.ManaPool;
mp.addExtrinsicKeyword("ManaPool:"+mana.toString());
}
};
card.clearSpellAbility();
card.addSpellAbility(spell);
}//*************** END ************ END **************************
return card;
}//getCard
}