mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Added the card property "attackingYou".
This commit is contained in:
@@ -3,7 +3,7 @@ ManaCost:1 W
|
|||||||
Types:Instant
|
Types:Instant
|
||||||
Text:no text
|
Text:no text
|
||||||
A:SP$ GainLife | Cost$ 1 W | LifeAmount$ X | References$ X | SpellDescription$ You gain 3 life for each creature attacking you.
|
A:SP$ GainLife | Cost$ 1 W | LifeAmount$ X | References$ X | SpellDescription$ You gain 3 life for each creature attacking you.
|
||||||
SVar:X:Count$Valid Creature.attacking+YouDontCtrl/Times.3
|
SVar:X:Count$Valid Creature.attackingYou/Times.3
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/blessed_reversal.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/blessed_reversal.jpg
|
||||||
SetInfo:8ED|Rare|http://magiccards.info/scans/en/8e/7.jpg
|
SetInfo:8ED|Rare|http://magiccards.info/scans/en/8e/7.jpg
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ ManaCost:1 R G
|
|||||||
Types:Creature Spider
|
Types:Creature Spider
|
||||||
Text:no text
|
Text:no text
|
||||||
PT:2/3
|
PT:2/3
|
||||||
A:AB$ ChangeZone | Cost$ 1 R G T | ValidTgts$ Creature.attacking+YouDontCtrl+withoutFlying | TgtPrompt$ Select target creature without flying that's attacking you | Origin$ Battlefield | Destination$ Exile | SpellDescription$ Exile CARDNAME and target creature without flying that's attacking you. | SubAbility$ ExileME
|
A:AB$ ChangeZone | Cost$ 1 R G T | ValidTgts$ Creature.attackingYou+withoutFlying | TgtPrompt$ Select target creature without flying that's attacking you | Origin$ Battlefield | Destination$ Exile | SpellDescription$ Exile CARDNAME and target creature without flying that's attacking you. | SubAbility$ ExileME
|
||||||
SVar:ExileME:DB$ChangeZone | Origin$ Battlefield | Destination$ Exile | Defined$ Self
|
SVar:ExileME:DB$ChangeZone | Origin$ Battlefield | Destination$ Exile | Defined$ Self
|
||||||
SVar:RemAIDeck:True
|
SVar:RemAIDeck:True
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ ManaCost:1 R G
|
|||||||
Types:Creature Kavu
|
Types:Creature Kavu
|
||||||
Text:no text
|
Text:no text
|
||||||
PT:2/3
|
PT:2/3
|
||||||
A:AB$ ChangeZone | Cost$ 1 R G T | ValidTgts$ Creature.withoutFlying+YouDontCtrl+attacking | TgtPrompt$ Select target creature without flying that's attacking you | Origin$ Battlefield | Destination$ Exile | SubAbility$ ExileSelf | SpellDescription$ Exile CARDNAME and target creature without flying that's attacking you.
|
A:AB$ ChangeZone | Cost$ 1 R G T | ValidTgts$ Creature.withoutFlying+attackingYou | TgtPrompt$ Select target creature without flying that's attacking you | Origin$ Battlefield | Destination$ Exile | SubAbility$ ExileSelf | SpellDescription$ Exile CARDNAME and target creature without flying that's attacking you.
|
||||||
SVar:ExileSelf:DB$ ChangeZone | Defined$ Self | Origin$ Battlefield | Destination$ Exile
|
SVar:ExileSelf:DB$ ChangeZone | Defined$ Self | Origin$ Battlefield | Destination$ Exile
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/hunting_kavu.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/hunting_kavu.jpg
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ ManaCost:no cost
|
|||||||
Types:Land
|
Types:Land
|
||||||
Text:no text
|
Text:no text
|
||||||
K:You may choose not to untap CARDNAME during your untap step.
|
K:You may choose not to untap CARDNAME during your untap step.
|
||||||
A:AB$ Pump | Cost$ T | ValidTgts$ Creature.withoutFlying+attacking+YouDontCtrl | TgtPrompt$ Select target creature without flying that's attacking you | RememberTargets$ True | SubAbility$ DBTap | SpellDescription$ Tap target creature without flying that's attacking you. It doesn't untap during its controller's untap step for as long as CARDNAME remains tapped.
|
A:AB$ Pump | Cost$ T | ValidTgts$ Creature.withoutFlying+attackingYou | TgtPrompt$ Select target creature without flying that's attacking you | RememberTargets$ True | SubAbility$ DBTap | SpellDescription$ Tap target creature without flying that's attacking you. It doesn't untap during its controller's untap step for as long as CARDNAME remains tapped.
|
||||||
SVar:DBTap:DB$Tap | Defined$ Targeted
|
SVar:DBTap:DB$Tap | Defined$ Targeted
|
||||||
S:Mode$ Continuous | Affected$ Creature.IsRemembered | AddHiddenKeyword$ HIDDEN This card doesn't untap during your next untap step.
|
S:Mode$ Continuous | Affected$ Creature.IsRemembered | AddHiddenKeyword$ HIDDEN This card doesn't untap during your next untap step.
|
||||||
T:Mode$ Untaps | ValidCard$ Card.Self | TriggerZones$ Battlefield | Execute$ TrigClearRemember | Static$ True
|
T:Mode$ Untaps | ValidCard$ Card.Self | TriggerZones$ Battlefield | Execute$ TrigClearRemember | Static$ True
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ Text:no text
|
|||||||
PT:2/2
|
PT:2/2
|
||||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ When CARDNAME enters the battlefield, target creature gets +2/+0 and gains haste until end of turn.
|
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ When CARDNAME enters the battlefield, target creature gets +2/+0 and gains haste until end of turn.
|
||||||
K:Evoke:R
|
K:Evoke:R
|
||||||
SVar:TrigPump:DB$Pump | Cost$ 0 | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ +2 | KW$ Haste
|
SVar:TrigPump:DB$ Pump | Cost$ 0 | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ +2 | KW$ Haste
|
||||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self+evoked | Execute$ TrigSac | Secondary$ True | TriggerDescription$ When CARDNAME enters the battlefield, if you cast it by it's evoke cost, sacrifice it.
|
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self+evoked | Execute$ TrigSac | Secondary$ True | TriggerDescription$ When CARDNAME enters the battlefield, if you cast it by it's evoke cost, sacrifice it.
|
||||||
SVar:TrigSac:AB$Sacrifice | Cost$ 0
|
SVar:TrigSac:AB$ Sacrifice | Cost$ 0
|
||||||
SVar:PlayMain1:TRUE
|
SVar:PlayMain1:TRUE
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/inner_flame_acolyte.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/inner_flame_acolyte.jpg
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Text:no text
|
|||||||
PT:2/3
|
PT:2/3
|
||||||
K:Reach
|
K:Reach
|
||||||
S:Mode$ Continuous | Affected$ Card.Self | EffectZone$ All | CheckSVar$ X | CheckSecondSVar2$ Y | CheckThirdSVar$ Z | References$ X,Y,Z | AddHiddenKeyword$ HIDDEN May be played without paying its mana cost and as though it has flash | Description$ If a creature is attacking you and you control a Forest and a Plains, you may cast CARDNAME without paying its mana cost and as though it had flash.
|
S:Mode$ Continuous | Affected$ Card.Self | EffectZone$ All | CheckSVar$ X | CheckSecondSVar2$ Y | CheckThirdSVar$ Z | References$ X,Y,Z | AddHiddenKeyword$ HIDDEN May be played without paying its mana cost and as though it has flash | Description$ If a creature is attacking you and you control a Forest and a Plains, you may cast CARDNAME without paying its mana cost and as though it had flash.
|
||||||
SVar:X:Count$Valid Creature.YouDontCtrl+attacking
|
SVar:X:Count$Valid Creature.attackingYou
|
||||||
SVar:Y:Count$Valid Forest.YouCtrl
|
SVar:Y:Count$Valid Forest.YouCtrl
|
||||||
SVar:Z:Count$Valid Plains.YouCtrl
|
SVar:Z:Count$Valid Plains.YouCtrl
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ PT:0/4
|
|||||||
K:Defender
|
K:Defender
|
||||||
A:AB$ Pump | Cost$ 1 | NumAtt$ +1 | SpellDescription$ CARDNAME gets +1/+0 until end of turn.
|
A:AB$ Pump | Cost$ 1 | NumAtt$ +1 | SpellDescription$ CARDNAME gets +1/+0 until end of turn.
|
||||||
A:AB$ Pump | Cost$ 1 | NumDef$ +1 | SpellDescription$ CARDNAME gets +0/+1 until end of turn.
|
A:AB$ Pump | Cost$ 1 | NumDef$ +1 | SpellDescription$ CARDNAME gets +0/+1 until end of turn.
|
||||||
A:AB$ DealDamage | Cost$ 3 | ValidTgts$ Creature.withoutFlying+attacking+YouDontCtrl | TgtPrompt$ Select target target creature without flying that's attacking you | NumDmg$ 1 | SpellDescription$ CARDNAME deals 1 damage to target creature without flying that's attacking you.
|
A:AB$ DealDamage | Cost$ 3 | ValidTgts$ Creature.withoutFlying+attackingYou | TgtPrompt$ Select target target creature without flying that's attacking you | NumDmg$ 1 | SpellDescription$ CARDNAME deals 1 damage to target creature without flying that's attacking you.
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/snow_fortress.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/snow_fortress.jpg
|
||||||
SetInfo:ICE|Rare|http://magiccards.info/scans/en/ia/312.jpg
|
SetInfo:ICE|Rare|http://magiccards.info/scans/en/ia/312.jpg
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ Name:Soul Snare
|
|||||||
ManaCost:W
|
ManaCost:W
|
||||||
Types:Enchantment
|
Types:Enchantment
|
||||||
Text:no text
|
Text:no text
|
||||||
A:AB$ ChangeZone | Cost$ W Sac<1/CARDNAME> | ValidTgts$ Creature.attacking+YouDontCtrl | TgtPrompt$ Select target creature that's attacking you or a planeswalker you control. | Origin$ Battlefield | Destination$ Exile | SpellDescription$ Exile target creature that's attacking you or a planeswalker you control.
|
A:AB$ ChangeZone | Cost$ W Sac<1/CARDNAME> | ValidTgts$ Creature.attacking+OppCtrl | TgtPrompt$ Select target creature that's attacking you or a planeswalker you control. | Origin$ Battlefield | Destination$ Exile | SpellDescription$ Exile target creature that's attacking you or a planeswalker you control.
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/soul_snare.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/soul_snare.jpg
|
||||||
SetInfo:COM|Uncommon|http://magiccards.info/scans/en/cmd/32.jpg
|
SetInfo:COM|Uncommon|http://magiccards.info/scans/en/cmd/32.jpg
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Types:Artifact Creature Hound
|
|||||||
Text:no text
|
Text:no text
|
||||||
PT:1/2
|
PT:1/2
|
||||||
K:CARDNAME blocks each turn if able.
|
K:CARDNAME blocks each turn if able.
|
||||||
S:Mode$ Continuous | Affected$ Creature.YouDontCtrl+attacking | AddPower$ -1 | CheckSVar$ X | SVarCompare$ EQ1 | Description$ As long as CARDNAME is untapped, all creatures attacking you get -1/-0.
|
S:Mode$ Continuous | Affected$ Creature.attackingYou | AddPower$ -1 | CheckSVar$ X | SVarCompare$ EQ1 | Description$ As long as CARDNAME is untapped, all creatures attacking you get -1/-0.
|
||||||
SVar:X:Count$Valid Card.Self+untapped
|
SVar:X:Count$Valid Card.Self+untapped
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/watchdog.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/watchdog.jpg
|
||||||
|
|||||||
@@ -7008,9 +7008,15 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (property.startsWith("attacking")) {
|
} else if (property.startsWith("attacking")) {
|
||||||
|
if (property.equals("attacking")) {
|
||||||
if (!this.isAttacking()) {
|
if (!this.isAttacking()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
} else if (property.equals("attackingYou")) {
|
||||||
|
if (!this.isAttacking(sourceController)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else if (property.startsWith("notattacking")) {
|
} else if (property.startsWith("notattacking")) {
|
||||||
if (this.isAttacking()) {
|
if (this.isAttacking()) {
|
||||||
return false;
|
return false;
|
||||||
@@ -7420,6 +7426,21 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
return Singletons.getModel().getGame().getCombat().isAttacking(this);
|
return Singletons.getModel().getGame().getCombat().isAttacking(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* isAttacking.
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @return a boolean.
|
||||||
|
*/
|
||||||
|
public final boolean isAttacking(GameEntity ge) {
|
||||||
|
Combat combat = Singletons.getModel().getGame().getCombat();
|
||||||
|
if (!combat.isAttacking(this)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return combat.getDefenderByAttacker(this).equals(ge);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* isBlocking.
|
* isBlocking.
|
||||||
|
|||||||
Reference in New Issue
Block a user