mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
implement bronze horse. added IsTargetingSource property.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -1348,6 +1348,7 @@ res/cardsfolder/b/broken_fall.txt svneol=native#text/plain
|
||||
res/cardsfolder/b/broken_visage.txt svneol=native#text/plain
|
||||
res/cardsfolder/b/brontotherium.txt -text
|
||||
res/cardsfolder/b/bronze_bombshell.txt -text
|
||||
res/cardsfolder/b/bronze_horse.txt -text
|
||||
res/cardsfolder/b/bronzebeak_moa.txt -text
|
||||
res/cardsfolder/b/brood_birthing.txt svneol=native#text/plain
|
||||
res/cardsfolder/b/brood_of_cockroaches.txt svneol=native#text/plain
|
||||
|
||||
13
res/cardsfolder/b/bronze_horse.txt
Normal file
13
res/cardsfolder/b/bronze_horse.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
Name:Bronze Horse
|
||||
ManaCost:7
|
||||
Types:Artifact Creature Horse
|
||||
PT:4/4
|
||||
K:Trample
|
||||
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ PreventAllDamageBy Spell.IsTargetingSource | CheckSVar$ X | SVarCompare$ GE1 | Description$ Prevent all damage that would be dealt to CARDNAME by spells that target it.
|
||||
SVar:X:Count$Valid Creature.YouCtrl+Other
|
||||
SVar:BuffedBy:Creature
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/bronze_horse.jpg
|
||||
Oracle:Trample\nAs long as you control another creature, prevent all damage that would be dealt to Bronze Horse by spells that target it.
|
||||
SetInfo:LEG Rare
|
||||
SetInfo:CHN Rare
|
||||
SetInfo:TSB Uncommon
|
||||
@@ -5615,6 +5615,18 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
if (!this.dealtDamageToThisTurn.containsKey(source)) {
|
||||
return false;
|
||||
}
|
||||
} else if (property.startsWith("IsTargetingSource")) {
|
||||
for (final SpellAbility sa : this.getCharacteristics().getSpellAbility()) {
|
||||
final SpellAbility saTargeting = sa.getSATargetingCard();
|
||||
if (saTargeting != null) {
|
||||
for (final Card c : saTargeting.getTarget().getTargetCards()) {
|
||||
if (c.equals(source)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
} else if (property.startsWith("SharesColorWith")) {
|
||||
if (property.equals("SharesColorWith")) {
|
||||
if (!this.sharesColorWith(source)) {
|
||||
|
||||
Reference in New Issue
Block a user