mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Converted Farsight Mask to script.
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
Name:Farsight Mask
|
Name:Farsight Mask
|
||||||
ManaCost:5
|
ManaCost:5
|
||||||
Types:Artifact
|
Types:Artifact
|
||||||
Text:Whenever a source an opponent controls deals damage to you, if Farsight Mask is untapped, you may draw a card.
|
Text:no text
|
||||||
|
T:Mode$ DamageDone | ValidSource$ Card.YouDontCtrl | ValidTarget$ You | TriggerZones$ Battlefield | Execute$ TrigDraw | OptionalDecider$ You | IsPresent$ Card.Self+untapped | TriggerDescription$ Whenever a source an opponent controls deals damage to you, if CARDNAME is untapped, you may draw a card.
|
||||||
|
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 1
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/farsight_mask.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/farsight_mask.jpg
|
||||||
SetInfo:MRD|Uncommon|http://magiccards.info/scans/en/mi/170.jpg
|
SetInfo:MRD|Uncommon|http://magiccards.info/scans/en/mi/170.jpg
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ Types:Creature Griffin
|
|||||||
Text:no text
|
Text:no text
|
||||||
PT:2/2
|
PT:2/2
|
||||||
K:Flying
|
K:Flying
|
||||||
T:Mode$ DamageDone | ValidSource$ Card.YouDontCtrl | ValidTarget$ You | TriggerZones$ Battlefield | Execute$ TrigSac | OptionalDecider$ You | TriggerDescription$ Whenever a source an opponent controls deals damage to you, you may put that many +1/+1 counters on CARDNAME.
|
T:Mode$ DamageDone | ValidSource$ Card.YouDontCtrl | ValidTarget$ You | TriggerZones$ Battlefield | Execute$ TrigPutCounter | OptionalDecider$ You | TriggerDescription$ Whenever a source an opponent controls deals damage to you, you may put that many +1/+1 counters on CARDNAME.
|
||||||
SVar:TrigPutCounter: AB$ PutCounter | Cost$ 0 | Defined$ Self | CounterType$ P1P1 | CounterNum$ X
|
SVar:TrigPutCounter:AB$ PutCounter | Cost$ 0 | Defined$ Self | CounterType$ P1P1 | CounterNum$ X
|
||||||
SVar:X:TriggerCount$DamageAmount
|
SVar:X:TriggerCount$DamageAmount
|
||||||
Svar:Rarity:Rare
|
Svar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/retaliator_griffin.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/retaliator_griffin.jpg
|
||||||
|
|||||||
@@ -1003,17 +1003,6 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
CardList playerPerms = AllZoneUtil.getPlayerCardsInPlay(player);
|
CardList playerPerms = AllZoneUtil.getPlayerCardsInPlay(player);
|
||||||
|
|
||||||
if (playerPerms.getName("Farsight Mask").size() > 0) {
|
|
||||||
final Card c1 = c;
|
|
||||||
CardList l = playerPerms.filter(new CardListFilter() {
|
|
||||||
public boolean addCard(Card crd) {
|
|
||||||
return crd.getName().equals("Farsight Mask") && crd.isUntapped() && !c1.getController().equals(crd.getController());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
for (Card crd : l)
|
|
||||||
playerDamage_Farsight_Mask(player, c, crd);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (AllZoneUtil.isCardInPlay("Lich", player)) {
|
if (AllZoneUtil.isCardInPlay("Lich", player)) {
|
||||||
CardList lichs = playerPerms.getName("Lich");
|
CardList lichs = playerPerms.getName("Lich");
|
||||||
for (Card crd : lichs) {
|
for (Card crd : lichs) {
|
||||||
@@ -1168,29 +1157,6 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>playerDamage_Farsight_Mask.</p>
|
|
||||||
*
|
|
||||||
* @param player a {@link forge.Player} object.
|
|
||||||
* @param c a {@link forge.Card} object.
|
|
||||||
* @param crd a {@link forge.Card} object.
|
|
||||||
* @param crd a {@link forge.Card} object.
|
|
||||||
*/
|
|
||||||
private static void playerDamage_Farsight_Mask(final Player player, final Card c, final Card crd) {
|
|
||||||
Ability ability = new Ability(crd, "0") {
|
|
||||||
public void resolve() {
|
|
||||||
if (crd.isUntapped()) {
|
|
||||||
player.mayDrawCard();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
ability.setStackDescription("Farsight Mask - You may draw a card.");
|
|
||||||
|
|
||||||
AllZone.getStack().addSimultaneousStackEntry(ability);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>playerCombatDamage_Treva.</p>
|
* <p>playerCombatDamage_Treva.</p>
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user