Added "ActivatedOnly" script key so SpellAbilityCast triggers can be limited to non-triggered abilities. Added Ceaseless Searblades.

This commit is contained in:
ArsenalNut
2011-08-22 04:56:13 +00:00
parent 825e64e9f2
commit 96149e1ac4
3 changed files with 18 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -1214,6 +1214,7 @@ res/cardsfolder/c/cavern_harpy.txt svneol=native#text/plain
res/cardsfolder/c/cavern_thoctar.txt svneol=native#text/plain res/cardsfolder/c/cavern_thoctar.txt svneol=native#text/plain
res/cardsfolder/c/caverns_of_despair.txt svneol=native#text/plain res/cardsfolder/c/caverns_of_despair.txt svneol=native#text/plain
res/cardsfolder/c/caves_of_koilos.txt svneol=native#text/plain res/cardsfolder/c/caves_of_koilos.txt svneol=native#text/plain
res/cardsfolder/c/ceaseless_searblades.txt -text
res/cardsfolder/c/celestial_ancient.txt svneol=native#text/plain res/cardsfolder/c/celestial_ancient.txt svneol=native#text/plain
res/cardsfolder/c/celestial_colonnade.txt svneol=native#text/plain res/cardsfolder/c/celestial_colonnade.txt svneol=native#text/plain
res/cardsfolder/c/celestial_crusader.txt svneol=native#text/plain res/cardsfolder/c/celestial_crusader.txt svneol=native#text/plain

View File

@@ -0,0 +1,11 @@
Name:Ceaseless Searblades
ManaCost:3 R
Types:Creature Elemental Warrior
Text:no text
PT:2/4
T:Mode$ AbilityCast | ValidCard$ Elemental | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigPump | ActivatedOnly$ True | TriggerDescription$ Whenever you activate an ability of an Elemental, CARDNAME gets +1/+0 until end of turn.
SVar:TrigPump:AB$ Pump | Cost$ 0 | Defined$ Self | NumAtt$ +1 | NumDef$ +0
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/ceaseless_searblades.jpg
SetInfo:LRW|Uncommon|http://magiccards.info/scans/en/lw/158.jpg
End

View File

@@ -46,6 +46,12 @@ public class Trigger_SpellAbilityCast extends Trigger {
//Empty block for readability. //Empty block for readability.
} }
if (mapParams.containsKey("ActivatedOnly")) {
if (SA.isTrigger()) {
return false;
}
}
if (mapParams.containsKey("ValidControllingPlayer")) { if (mapParams.containsKey("ValidControllingPlayer")) {
if (!matchesValid(cast.getController(), mapParams.get("ValidControllingPlayer").split(","), hostCard)) { if (!matchesValid(cast.getController(), mapParams.get("ValidControllingPlayer").split(","), hostCard)) {
return false; return false;