- Added AI support for Perilous Research (given the right deck).

This commit is contained in:
Sloth
2014-10-09 21:57:45 +00:00
parent 94b81a6ec9
commit 42e3778778
2 changed files with 7 additions and 1 deletions

View File

@@ -4995,6 +4995,11 @@ public class Card extends GameEntity implements Comparable<Card>, IIdentifiable
if (!isCommander) { if (!isCommander) {
return false; return false;
} }
} else if (property.startsWith("HasSVar")) {
final String svar = property.substring(8);
if (!hasSVar(svar)) {
return false;
}
} else { } else {
if (!isType(property)) { if (!isType(property)) {
return false; return false;

View File

@@ -2,7 +2,8 @@ Name:Perilous Research
ManaCost:1 U ManaCost:1 U
Types:Instant Types:Instant
A:SP$ Draw | Cost$ 1 U | NumCards$ 2 | SubAbility$ DBSac | SpellDescription$ Draw two cards, then sacrifice a permanent. A:SP$ Draw | Cost$ 1 U | NumCards$ 2 | SubAbility$ DBSac | SpellDescription$ Draw two cards, then sacrifice a permanent.
SVar:DBSac:DB$Sacrifice | SacValid$ Permanent SVar:DBSac:DB$ Sacrifice | SacValid$ Permanent
SVar:NeedsToPlay:Permanent.YouCtrl+HasSVar SacMe
SVar:RemRandomDeck:True SVar:RemRandomDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/perilous_research.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/perilous_research.jpg
Oracle:Draw two cards, then sacrifice a permanent. Oracle:Draw two cards, then sacrifice a permanent.