mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
*Added Radiance parameter to AF_Pump
*Added Incite Hysteria Surge of Zeal Wojek Siren
This commit is contained in:
@@ -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