mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
*Added Radiance parameter to AF_Pump
*Added Incite Hysteria Surge of Zeal Wojek Siren
This commit is contained in:
3
.gitattributes
vendored
3
.gitattributes
vendored
@@ -3710,6 +3710,7 @@ res/cardsfolder/i/incendiary.txt svneol=native#text/plain
|
||||
res/cardsfolder/i/incendiary_command.txt svneol=native#text/plain
|
||||
res/cardsfolder/i/incinerate.txt svneol=native#text/plain
|
||||
res/cardsfolder/i/incite.txt svneol=native#text/plain
|
||||
res/cardsfolder/i/incite_hysteria.txt -text
|
||||
res/cardsfolder/i/incremental_blight.txt -text
|
||||
res/cardsfolder/i/incremental_growth.txt -text
|
||||
res/cardsfolder/i/incurable_ogre.txt svneol=native#text/plain
|
||||
@@ -7543,6 +7544,7 @@ res/cardsfolder/s/suqata_lancer.txt svneol=native#text/plain
|
||||
res/cardsfolder/s/surge_node.txt svneol=native#text/plain
|
||||
res/cardsfolder/s/surge_of_strength.txt svneol=native#text/plain
|
||||
res/cardsfolder/s/surge_of_thoughtweft.txt svneol=native#text/plain
|
||||
res/cardsfolder/s/surge_of_zeal.txt -text
|
||||
res/cardsfolder/s/surgical_extraction.txt svneol=native#text/plain
|
||||
res/cardsfolder/s/surging_aether.txt svneol=native#text/plain
|
||||
res/cardsfolder/s/surging_dementia.txt svneol=native#text/plain
|
||||
@@ -8787,6 +8789,7 @@ res/cardsfolder/w/wizards_school.txt svneol=native#text/plain
|
||||
res/cardsfolder/w/wizened_cenn.txt svneol=native#text/plain
|
||||
res/cardsfolder/w/woebearer.txt svneol=native#text/plain
|
||||
res/cardsfolder/w/wojek_embermage.txt svneol=native#text/plain
|
||||
res/cardsfolder/w/wojek_siren.txt -text
|
||||
res/cardsfolder/w/wolf_skull_shaman.txt svneol=native#text/plain
|
||||
res/cardsfolder/w/wolfbriar_elemental.txt svneol=native#text/plain
|
||||
res/cardsfolder/w/wolverine_pack.txt svneol=native#text/plain
|
||||
|
||||
6
res/cardsfolder/i/incite_hysteria.txt
Normal file
6
res/cardsfolder/i/incite_hysteria.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
Name:Incite Hysteria
|
||||
ManaCost:2 R
|
||||
Types:Instant
|
||||
Text:no text
|
||||
A:SP$Pump | Cost$ 2 R | ValidTgts$ Creature | Radiance$ True | KW$ CARDNAME can't block. | SpellDescription$ Radiance - Until end of turn, target creature and each other creature that shares a color with it gain "This creature can't block."
|
||||
End
|
||||
6
res/cardsfolder/s/surge_of_zeal.txt
Normal file
6
res/cardsfolder/s/surge_of_zeal.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
Name:Surge of Zeal
|
||||
ManaCost:R
|
||||
Types:Instant
|
||||
Text:no text
|
||||
A:SP$Pump | Cost$ R | ValidTgts$ Creature | Radiance$ True | KW$ Haste | SpellDescription$ Radiance - Target creature and each other creature that shares a color with it gain haste until end of turn.
|
||||
End
|
||||
6
res/cardsfolder/w/wojek_siren.txt
Normal file
6
res/cardsfolder/w/wojek_siren.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
Name:Wojek Siren
|
||||
ManaCost:W
|
||||
Types:Instant
|
||||
Text:no text
|
||||
A:SP$Pump | Cost$ W | ValidTgts$ Creature | Radiance$ True | NumAtt$ 1 | NumDef$ 1 | SpellDescription$ Radiance - Target creature and each other creature that shares a color with it get +1/+1 until end of turn.
|
||||
End
|
||||
@@ -699,5 +699,26 @@ public final class CardUtil {
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public static CardList getRadiance(final Card source, final Card origin, final String[] valid) {
|
||||
CardList res = new CardList();
|
||||
|
||||
for(Card_Color col : origin.getColor()) {
|
||||
for(String strCol : col.toStringArray())
|
||||
{
|
||||
if(strCol.equalsIgnoreCase("Colorless")) {
|
||||
continue;
|
||||
}
|
||||
for(Card c : AllZoneUtil.getColorInPlay(strCol))
|
||||
{
|
||||
if(!res.contains(c) && c.isValidCard(valid, source.getController(), source) && !c.equals(origin)) {
|
||||
res.add(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
} //end class CardUtil
|
||||
|
||||
@@ -704,6 +704,12 @@ public class AbilityFactory_Pump {
|
||||
else
|
||||
tgtCards = AbilityFactory.getDefinedCards(hostCard, params.get("Defined"), sa);
|
||||
|
||||
if(params.containsKey("Radiance")) {
|
||||
for(Card c : CardUtil.getRadiance(hostCard, tgtCards.get(0), params.get("ValidTgts").split(","))) {
|
||||
tgtCards.add(c);
|
||||
}
|
||||
}
|
||||
|
||||
int size = tgtCards.size();
|
||||
for (int j = 0; j < size; j++) {
|
||||
final Card tgtC = tgtCards.get(j);
|
||||
|
||||
Reference in New Issue
Block a user