- Added Nafs Asp (script by moomarc) with proper code support.

This commit is contained in:
Agetian
2012-11-28 13:46:05 +00:00
parent 0019b72cc9
commit fbdf30a2a3
3 changed files with 25 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -6590,6 +6590,7 @@ res/cardsfolder/n/nacatl_hunt_pride.txt svneol=native#text/plain
res/cardsfolder/n/nacatl_outlander.txt svneol=native#text/plain
res/cardsfolder/n/nacatl_savage.txt svneol=native#text/plain
res/cardsfolder/n/nacre_talisman.txt svneol=native#text/plain
res/cardsfolder/n/nafs_asp.txt -text
res/cardsfolder/n/nagao_bound_by_honor.txt svneol=native#text/plain
res/cardsfolder/n/nameless_inversion.txt svneol=native#text/plain
res/cardsfolder/n/nameless_one.txt svneol=native#text/plain

View File

@@ -0,0 +1,17 @@
Name:Nafs Asp
ManaCost:G
Types:Creature Snake
Text:no text
PT:1/1
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Player | Execute$ NafsEffect | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals damage to a player, that player loses 1 life at the beginning of his or her next draw step unless he or she pays 1 before that draw step.
SVar:NafsEffect:AB$ Effect | Cost$ 0 | Name$ Nafs Effect | EffectOwner$ TriggeredTarget | Duration$ Permanent | Triggers$ DrawTrig | Abilities$ PayUp | SVars$ Bleed,ExileEffect
SVar:DrawTrig:Mode$ Phase | Phase$ Draw | ValidPlayer$ You | TriggerZones$ Command | Execute$ Bleed | TriggerDescription$ You lose 1 life at the beginning of your next draw step unless you pay 1 before that draw step.
SVar:Bleed:AB$ LoseLife | Cost$ 0 | Defined$ You | LifeAmount$ 1 | SubAbility$ ExileEffect
SVar:ExileEffect:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile
SVar:PayUp:AB$ ChangeZone | Cost$ 1 | Defined$ Self | Origin$ Command | Destination$ Exile | Static$ True | ActivationZone$ Command | AILogic$ Always | SpellDescription$ Pay 1 to remove this effect.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/nafs_asp.jpg
SetInfo:4ED|Common|http://magiccards.info/scans/en/4e/148.jpg
SetInfo:ARN|Common|http://magiccards.info/scans/en/an/36.jpg|2
Oracle:Whenever Nafs Asp deals damage to a player, that player loses 1 life at the beginning of his or her next draw step unless he or she pays {1} before that draw step.
End

View File

@@ -61,6 +61,13 @@ public class ChangeZoneAi extends SpellAiLogic {
origin = sa.getParam("Origin");
}
if (sa.hasParam("AILogic")) {
System.out.println("HERE.");
if (sa.getParam("AILogic").equals("Always")) {
return true;
}
}
if (ZoneType.isHidden(origin, sa.hasParam("Hidden"))) {
return hiddenOriginCanPlayAI(aiPlayer, sa);
} else if (ZoneType.isKnown(origin)) {