mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
add Brightstone Ritual (from Onslaught)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
8
res/cardsfolder/brightstone_ritual.txt
Normal file
8
res/cardsfolder/brightstone_ritual.txt
Normal 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
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user