mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Added the optional parameter "TargetsFromDifferentZone" (allows only targets with different controllers).
- Added Prey Upon.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -6659,6 +6659,7 @@ res/cardsfolder/p/presence_of_gond.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/p/presence_of_the_master.txt svneol=native#text/plain
|
res/cardsfolder/p/presence_of_the_master.txt svneol=native#text/plain
|
||||||
res/cardsfolder/p/presence_of_the_wise.txt svneol=native#text/plain
|
res/cardsfolder/p/presence_of_the_wise.txt svneol=native#text/plain
|
||||||
res/cardsfolder/p/pretenders_claim.txt svneol=native#text/plain
|
res/cardsfolder/p/pretenders_claim.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/p/prey_upon.txt -text
|
||||||
res/cardsfolder/p/preys_vengeance.txt -text
|
res/cardsfolder/p/preys_vengeance.txt -text
|
||||||
res/cardsfolder/p/price_of_progress.txt svneol=native#text/plain
|
res/cardsfolder/p/price_of_progress.txt svneol=native#text/plain
|
||||||
res/cardsfolder/p/prickly_boggart.txt svneol=native#text/plain
|
res/cardsfolder/p/prickly_boggart.txt svneol=native#text/plain
|
||||||
|
|||||||
11
res/cardsfolder/p/prey_upon.txt
Normal file
11
res/cardsfolder/p/prey_upon.txt
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Name:Prey Upon
|
||||||
|
ManaCost:G
|
||||||
|
Types:Sorcery
|
||||||
|
Text:no text
|
||||||
|
A:SP$ Fight | Cost$ G | ValidTgts$ Creature | TgtPrompt$ Select target creature | TargetsFromDifferentZone$ True | TargetMin$ 2 | TargetMax$ 2 | SpellDescription$ Target creature you control fights target creature you don't control. (Each deals damage equal to its power to the other.)
|
||||||
|
SVar:RemAIDeck:True
|
||||||
|
SVar:Rarity:Common
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/prey_upon.jpg
|
||||||
|
SetInfo:ISD|Common|http://magiccards.info/scans/en/isd/200.jpg
|
||||||
|
Oracle:Target creature you control fights target creature you don't control. (Each deals damage equal to its power to the other.)
|
||||||
|
End
|
||||||
@@ -416,6 +416,9 @@ public class AbilityFactory {
|
|||||||
if (this.mapParams.containsKey("TargetsFromSingleZone")) {
|
if (this.mapParams.containsKey("TargetsFromSingleZone")) {
|
||||||
this.abTgt.setSingleZone(true);
|
this.abTgt.setSingleZone(true);
|
||||||
}
|
}
|
||||||
|
if (this.mapParams.containsKey("TargetsFromDifferentZone")) {
|
||||||
|
this.abTgt.setDifferentZone(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.hasSubAb = this.mapParams.containsKey("SubAbility");
|
this.hasSubAb = this.mapParams.containsKey("SubAbility");
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ public class Target {
|
|||||||
private Card srcCard;
|
private Card srcCard;
|
||||||
private boolean uniqueTargets = false;
|
private boolean uniqueTargets = false;
|
||||||
private boolean singleZone = false;
|
private boolean singleZone = false;
|
||||||
|
private boolean differentZone = false;
|
||||||
private TargetChoices choice = null;
|
private TargetChoices choice = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -771,4 +772,18 @@ public class Target {
|
|||||||
}
|
}
|
||||||
return clone;
|
return clone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the differentZone
|
||||||
|
*/
|
||||||
|
public boolean isDifferentZone() {
|
||||||
|
return differentZone;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param different the differentZone to set
|
||||||
|
*/
|
||||||
|
public void setDifferentZone(boolean different) {
|
||||||
|
this.differentZone = different;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -285,6 +285,10 @@ public class TargetSelection {
|
|||||||
if (tgt.isSingleZone() && !targeted.isEmpty()) {
|
if (tgt.isSingleZone() && !targeted.isEmpty()) {
|
||||||
choices = choices.getController(targeted.get(0).getController());
|
choices = choices.getController(targeted.get(0).getController());
|
||||||
}
|
}
|
||||||
|
// If all cards must be from different zones
|
||||||
|
if (tgt.isDifferentZone() && !targeted.isEmpty()) {
|
||||||
|
choices = choices.getController(targeted.get(0).getController().getOpponent());
|
||||||
|
}
|
||||||
|
|
||||||
if (zone.contains(Constant.Zone.Battlefield)) {
|
if (zone.contains(Constant.Zone.Battlefield)) {
|
||||||
AllZone.getInputControl().setInput(this.inputTargetSpecific(choices, true, mandatory, objects));
|
AllZone.getInputControl().setInput(this.inputTargetSpecific(choices, true, mandatory, objects));
|
||||||
|
|||||||
Reference in New Issue
Block a user