- Simple logic for Enhanced Surveillance. Fix description.

This commit is contained in:
Agetian
2018-11-17 09:23:40 +03:00
parent 7114563027
commit 7adb8201c6
2 changed files with 5 additions and 2 deletions

View File

@@ -220,6 +220,9 @@ public class ChangeZoneAllAi extends SpellAbilityAi {
} else { } else {
return false; return false;
} }
} else if (destination.equals(ZoneType.Library) && "Card.YouOwn".equals(sa.getParam("ChangeType"))) {
return (ai.getCardsIn(ZoneType.Graveyard).size() > ai.getCardsIn(ZoneType.Library).size())
&& !ComputerUtil.isPlayingReanimator(ai);
} }
} else if (origin.equals(ZoneType.Exile)) { } else if (origin.equals(ZoneType.Exile)) {
String logic = sa.getParam("AILogic"); String logic = sa.getParam("AILogic");

View File

@@ -1,9 +1,9 @@
Name:Enhanced Surveillance Name:Enhanced Surveillance
ManaCost:1 U ManaCost:1 U
Types:Enchantment Types:Enchantment
R:Event$ Surveil | ActiveZones$ Battlefield | ValidPlayer$ You | ReplaceWith$ AddTwoMore | Description$ You may look at an additional two cards each you surveil. R:Event$ Surveil | ActiveZones$ Battlefield | ValidPlayer$ You | ReplaceWith$ AddTwoMore | Description$ You may look at an additional two cards each time you surveil.
SVar:AddTwoMore:DB$ ReplaceEffect | VarName$ SurveilNum | VarValue$ X | References$ X SVar:AddTwoMore:DB$ ReplaceEffect | VarName$ SurveilNum | VarValue$ X | References$ X
SVar:X:ReplaceCount$SurveilNum/Plus.2 SVar:X:ReplaceCount$SurveilNum/Plus.2
A:AB$ ChangeZoneAll | Cost$ Exile<1/CARDNAME> | ChangeType$ Card.YouOwn | Origin$ Graveyard | Destination$ Library | Shuffle$ True | SpellDescription$ Shuffle your graveyard into your library. A:AB$ ChangeZoneAll | Cost$ Exile<1/CARDNAME> | ChangeType$ Card.YouOwn | Origin$ Graveyard | Destination$ Library | Shuffle$ True | SpellDescription$ Shuffle your graveyard into your library.
DeckNeeds:Ability$Surveil DeckNeeds:Ability$Surveil
Oracle:You may look at an additional two cards each you surveil.\nExile Enhanced Surveillance: Shuffle your graveyard into your library. Oracle:You may look at an additional two cards each time you surveil.\nExile Enhanced Surveillance: Shuffle your graveyard into your library.