- Minor update "SearchedLibrary"

- Added Melee
This commit is contained in:
swordshine
2013-06-04 00:47:36 +00:00
parent 10b1520f13
commit 1646f855b9
5 changed files with 18 additions and 3 deletions

1
.gitattributes vendored
View File

@@ -6670,6 +6670,7 @@ res/cardsfolder/m/meglonoth.txt svneol=native#text/plain
res/cardsfolder/m/megrim.txt svneol=native#text/plain res/cardsfolder/m/megrim.txt svneol=native#text/plain
res/cardsfolder/m/meishin_the_mind_cage.txt svneol=native#text/plain res/cardsfolder/m/meishin_the_mind_cage.txt svneol=native#text/plain
res/cardsfolder/m/melancholy.txt svneol=native#text/plain res/cardsfolder/m/melancholy.txt svneol=native#text/plain
res/cardsfolder/m/melee.txt -text
res/cardsfolder/m/melek_izzet_paragon.txt -text res/cardsfolder/m/melek_izzet_paragon.txt -text
res/cardsfolder/m/melesse_spirit.txt svneol=native#text/plain res/cardsfolder/m/melesse_spirit.txt svneol=native#text/plain
res/cardsfolder/m/melira_sylvok_outcast.txt -text res/cardsfolder/m/melira_sylvok_outcast.txt -text

View File

@@ -0,0 +1,14 @@
Name:Melee
ManaCost:4 R
Types:Instant
A:SP$ DeclareCombatants | Cost$ 4 R | DeclareBlockers$ True | PlayerTurn$ True | ActivationPhases$ BeginCombat->Declare Attackers | SubAbility$ DBEffect | SpellDescription$ Cast CARDNAME only during your turn and only during combat before blockers are declared. You choose which creatures block this combat and how those creatures block. Whenever a creature attacks and isn't blocked this combat, untap it and remove it from combat.
SVar:DBEffect:DB$ Effect | Triggers$ TrigAttack,TrigEndCombat | SVars$ RemoveEffect,TrigUntap,RemCombat
SVar:TrigEndCombat:Mode$ Phase | Phase$ EndCombat | ValidPlayer$ You | TriggerZones$ Command | Execute$ RemoveEffect | Static$ True
SVar:RemoveEffect:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile
SVar:TrigAttack:Mode$ AttackerUnblocked | ValidCard$ Creature | Execute$ TrigUntap | TriggerZones$ Command | TriggerDescription$ Whenever a creature attacks and isn't blocked this combat, untap it and remove it from combat.
SVar:TrigUntap:AB$ Untap | Cost$ 0 | Defined$ TriggeredAttacker | SubAbility$ RemCombat
SVar:RemCombat:DB$ RemoveFromCombat | Defined$ TriggeredAttacker
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/melee.jpg
Oracle:Cast Melee only during your turn and only during combat before blockers are declared.\nYou choose which creatures block this combat and how those creatures block.\nWhenever a creature attacks and isn't blocked this combat, untap it and remove it from combat.
SetInfo:ICE Uncommon

View File

@@ -1090,7 +1090,7 @@ public class ChangeZoneAi extends SpellAbilityAi {
origin = ZoneType.listValueOf(sa.getParam("Origin")); origin = ZoneType.listValueOf(sa.getParam("Origin"));
} }
if(origin.contains(ZoneType.Library)) { if(origin.contains(ZoneType.Library) && !sa.hasParam("NoLooking")) {
sa.getActivatingPlayer().incLibrarySearched(); sa.getActivatingPlayer().incLibrarySearched();
} }

View File

@@ -41,7 +41,7 @@ public class ChangeZoneAllEffect extends SpellAbilityEffect {
final ZoneType destination = ZoneType.smartValueOf(sa.getParam("Destination")); final ZoneType destination = ZoneType.smartValueOf(sa.getParam("Destination"));
final List<ZoneType> origin = ZoneType.listValueOf(sa.getParam("Origin")); final List<ZoneType> origin = ZoneType.listValueOf(sa.getParam("Origin"));
if(origin.contains(ZoneType.Library)) { if(origin.contains(ZoneType.Library) && sa.hasParam("Search")) {
sa.getActivatingPlayer().incLibrarySearched(); sa.getActivatingPlayer().incLibrarySearched();
} }

View File

@@ -635,7 +635,7 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
origin = ZoneType.listValueOf(sa.getParam("Origin")); origin = ZoneType.listValueOf(sa.getParam("Origin"));
} }
if(origin.contains(ZoneType.Library)) { if(origin.contains(ZoneType.Library) && !sa.hasParam("NoLooking")) {
sa.getActivatingPlayer().incLibrarySearched(); sa.getActivatingPlayer().incLibrarySearched();
} }