- Added Radiate

This commit is contained in:
swordshine
2013-05-29 00:58:01 +00:00
parent aaaa82b49b
commit 4e01887c56
3 changed files with 13 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -8428,6 +8428,7 @@ res/cardsfolder/r/radiant_essence.txt svneol=native#text/plain
res/cardsfolder/r/radiant_kavu.txt -text
res/cardsfolder/r/radiants_dragoons.txt svneol=native#text/plain
res/cardsfolder/r/radiants_judgment.txt svneol=native#text/plain
res/cardsfolder/r/radiate.txt -text
res/cardsfolder/r/radjan_spirit.txt svneol=native#text/plain
res/cardsfolder/r/rafiq_of_the_many.txt svneol=native#text/plain
res/cardsfolder/r/rag_dealer.txt -text

View File

@@ -0,0 +1,8 @@
Name:Radiate
ManaCost:3 R R
Types:Instant
A:SP$ CopySpellAbility | Cost$ 3 R R | ValidTgts$ Instant,Sorcery | TargetsSingleTarget$ True | TargetValidTargeting$ Permanent,Player | Controller$ You | CopyForEachCanTarget$ True | CanTargetPlayer$ True | SpellDescription$ Choose target instant or sorcery spell that targets only a single permanent or player. Copy that spell for each other permanent or player the spell could target. Each copy targets a different one of those permanents and players.
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/radiate.jpg
Oracle:Choose target instant or sorcery spell that targets only a single permanent or player. Copy that spell for each other permanent or player the spell could target. Each copy targets a different one of those permanents and players.
SetInfo:TOR Rare

View File

@@ -113,7 +113,10 @@ public class CopySpellAbilityEffect extends SpellAbilityEffect {
}
chosenSA.setActivatingPlayer(controller);
List<Object> candidates = chosenSA.getTarget().getAllCandidates(chosenSA, true);
if (sa.hasParam("CanTargetPlayer")) {// Radiate
if (sa.hasParam("CanTargetPlayer")) {
// Radiate
// Remove targeted players because getAllCandidates include all the valid players
candidates.removeAll(chosenSA.getTarget().getTargetPlayers());
for (Object o : candidates) {
CardFactory.copySpellontoStack(card, chosenSA.getSourceCard(), chosenSA, true, o);
}