mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Converted Blade of the Bloodchief to Script
This commit is contained in:
@@ -2,8 +2,10 @@ Name:Blade of the Bloodchief
|
|||||||
ManaCost:1
|
ManaCost:1
|
||||||
Types:Artifact Equipment
|
Types:Artifact Equipment
|
||||||
Text:no text
|
Text:no text
|
||||||
# TODO - Convert this to script
|
|
||||||
K:Equip 1
|
K:Equip 1
|
||||||
|
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Creature | TriggerZones$ Battlefield | Execute$ TrigGainCounter | TriggerDescription$ Whenever a creature is put into a graveyard from the battlefield, put a +1/+1 counter on equipped creature. If equipped creature is a Vampire, put two +1/+1 counters on it instead.
|
||||||
|
SVar:TrigGainCounter:DB$ PutCounter | Defined$ Equipped | CounterType$ P1P1 | CounterNum$ X
|
||||||
|
SVar:X:Count$Valid Creature.EquippedBy+Vampire/Plus.1
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/blade_of_the_bloodchief.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/blade_of_the_bloodchief.jpg
|
||||||
SetInfo:ZEN|Rare|http://magiccards.info/scans/en/zen/196.jpg
|
SetInfo:ZEN|Rare|http://magiccards.info/scans/en/zen/196.jpg
|
||||||
|
|||||||
@@ -45,35 +45,7 @@ class CardFactoryEquipment {
|
|||||||
* @return a {@link forge.Card} object.
|
* @return a {@link forge.Card} object.
|
||||||
*/
|
*/
|
||||||
public static void buildCard(final Card card, final String cardName) {
|
public static void buildCard(final Card card, final String cardName) {
|
||||||
|
// TODO: Move Living Weapon to main Keyword generator, and delete this file
|
||||||
// *************** START *********** START **************************
|
|
||||||
if (cardName.equals("Blade of the Bloodchief")) {
|
|
||||||
final Ability triggeredAbility = new Ability(card, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
if (card.getEquipping().size() != 0) {
|
|
||||||
final Card equipping = card.getEquipping().get(0);
|
|
||||||
if (equipping.isType("Vampire")) {
|
|
||||||
equipping.addCounter(Counters.P1P1, 2);
|
|
||||||
} else {
|
|
||||||
equipping.addCounter(Counters.P1P1, 1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
final StringBuilder sbTrig = new StringBuilder();
|
|
||||||
sbTrig.append("Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ");
|
|
||||||
sbTrig.append("ValidCard$ Creature | TriggerZones$ Battlefield | Execute$ TrigOverride | ");
|
|
||||||
sbTrig.append("TriggerDescription$ Whenever a creature is put into a graveyard ");
|
|
||||||
sbTrig.append("from the battlefield, put a +1/+1 counter on equipped creature. ");
|
|
||||||
sbTrig.append("If equipped creature is a Vampire, put two +1/+1 counters on it instead.");
|
|
||||||
final Trigger myTrigger = TriggerHandler.parseTrigger(sbTrig.toString(), card, true);
|
|
||||||
myTrigger.setOverridingAbility(triggeredAbility);
|
|
||||||
|
|
||||||
card.addTrigger(myTrigger);
|
|
||||||
} // *************** END ************ END **************************
|
|
||||||
|
|
||||||
if (card.hasKeyword("Living Weapon")) {
|
if (card.hasKeyword("Living Weapon")) {
|
||||||
card.removeIntrinsicKeyword("Living Weapon");
|
card.removeIntrinsicKeyword("Living Weapon");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user