- Added Grifter's Blade

This commit is contained in:
swordshine
2013-03-28 05:33:54 +00:00
parent d048f06c7c
commit 564c97571b
3 changed files with 19 additions and 3 deletions

1
.gitattributes vendored
View File

@@ -4519,6 +4519,7 @@ res/cardsfolder/g/griffin_guide.txt svneol=native#text/plain
res/cardsfolder/g/griffin_protector.txt -text
res/cardsfolder/g/griffin_rider.txt svneol=native#text/plain
res/cardsfolder/g/griffin_sentinel.txt svneol=native#text/plain
res/cardsfolder/g/grifters_blade.txt -text
res/cardsfolder/g/grim_affliction.txt svneol=native#text/plain
res/cardsfolder/g/grim_backwoods.txt -text
res/cardsfolder/g/grim_discovery.txt -text

View File

@@ -0,0 +1,12 @@
Name:Grifter's Blade
ManaCost:3
Types:Artifact Equipment
K:Equip 1
K:Flash
K:ETBReplacement:Other:ChooseC
SVar:ChooseC:DB$ ChooseCard | Defined$ You | Choices$ Creature.YouCtrl+CanBeEquippedBy | Amount$ 1 | Mandatory$ True | SubAbility$ DBAttach | SpellDescription$ As CARDNAME enters the battlefield, choose a creature you control it could be attached to. If you do, it enters the battlefield attached to that creature.
SVar:DBAttach:DB$ Attach | Object$ Self | Defined$ ChosenCard
S:Mode$ Continuous | Affected$ Creature.EquippedBy | AddPower$ 1 | AddToughness$ 1 | Description$ Equipped creature gets +1/+1.
SVar:Picture:http://www.wizards.com/global/images/magic/general/grifters_blade.jpg
Oracle:Flash\nAs Grifter's Blade enters the battlefield, choose a creature you control it could be attached to. If you do, it enters the battlefield attached to that creature.\nEquipped creature gets +1/+1.\nEquip {1}
SetInfo:RAV Uncommon

View File

@@ -6445,6 +6445,10 @@ public class Card extends GameEntity implements Comparable<Card> {
return false;
}
}
} else if (property.startsWith("CanBeEquippedBy")) {
if (!this.canBeEquippedBy(source)) {
return false;
}
} else if (property.startsWith("Equipped")) {
if (!this.equipping.contains(source)) {
return false;
@@ -6542,9 +6546,8 @@ public class Card extends GameEntity implements Comparable<Card> {
}
}
} else if (restriction.equals("Equipped")) {
if (!source.isEquipment() || !source.isEquipping()) {
return false;
} else if (!this.sharesColorWith(source.getEquippingCard())) {
if (!source.isEquipment() || !source.isEquipping()
|| !this.sharesColorWith(source.getEquippingCard())) {
return false;
}
} else if (restriction.equals("MostProminentColor")) {