mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
*Added Living Weapon keyword.
*Added Flayer Husk Skinwing Strandwalker
This commit is contained in:
3
.gitattributes
vendored
3
.gitattributes
vendored
@@ -1975,6 +1975,7 @@ res/cardsfolder/flash_flood.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/flash_of_defiance.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/flashfires.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/flashfreeze.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/flayer_husk.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/fledgling_djinn.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/fledgling_griffin.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/fledgling_imp.txt -text svneol=native#text/plain
|
||||
@@ -4952,6 +4953,7 @@ res/cardsfolder/skeletal_wurm.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/skeleton_ship.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/skinrender.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/skinthinner.txt svneol=native#text/plain
|
||||
res/cardsfolder/skinwing.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/skirk_fire_marshal.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/skirk_outrider.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/skirk_prospector.txt -text svneol=native#text/plain
|
||||
@@ -5348,6 +5350,7 @@ res/cardsfolder/stormwatch_eagle.txt svneol=native#text/plain
|
||||
res/cardsfolder/strafe.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/strands_of_night.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/strands_of_undeath.txt svneol=native#text/plain
|
||||
res/cardsfolder/strandwalker.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/strangling_soot.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/stratadon.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/stratozeppelid.txt -text svneol=native#text/plain
|
||||
|
||||
9
res/cardsfolder/flayer_husk.txt
Normal file
9
res/cardsfolder/flayer_husk.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
Name:Flayer Husk
|
||||
ManaCost:1
|
||||
Types:Artifact Equipment
|
||||
Text:no text
|
||||
K:eqPump 2:+1/+1
|
||||
K:Living Weapon
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/flayer_husk.jpg
|
||||
End
|
||||
9
res/cardsfolder/skinwing.txt
Normal file
9
res/cardsfolder/skinwing.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
Name:Skinwing
|
||||
ManaCost:4
|
||||
Types:Artifact Equipment
|
||||
Text:no text
|
||||
K:eqPump 6:+2/+2/Flying
|
||||
K:Living Weapon
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/skinwing.jpg
|
||||
End
|
||||
9
res/cardsfolder/strandwalker.txt
Normal file
9
res/cardsfolder/strandwalker.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
Name:Strandwalker
|
||||
ManaCost:5
|
||||
Types:Artifact Equipment
|
||||
Text:no text
|
||||
K:eqPump 4:+2/+4/Reach
|
||||
K:Living Weapon
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/strandwalker.jpg
|
||||
End
|
||||
@@ -829,8 +829,10 @@ class CardFactory_Equipment {
|
||||
{
|
||||
if (ptk[i].matches("[\\+\\-][0-9]")) ptk[i] =ptk[i].replace("+", "");
|
||||
}
|
||||
|
||||
Power = Integer.parseInt(ptk[0].trim());
|
||||
Tough = Integer.parseInt(ptk[1].trim());
|
||||
|
||||
|
||||
if (ptk.length > 2) // keywords in third cell
|
||||
keywordsUnsplit = ptk[2];
|
||||
@@ -854,6 +856,37 @@ class CardFactory_Equipment {
|
||||
}
|
||||
}// eqPump (was VanillaEquipment)
|
||||
|
||||
if(card.hasKeyword("Living Weapon"))
|
||||
{
|
||||
card.removeIntrinsicKeyword("Living Weapon");
|
||||
final Ability etbAbility = new Ability(card,"0")
|
||||
{
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
String[] types = new String[] { "Creature" , "Germ" };
|
||||
String[] keywords = new String[0];
|
||||
CardList germs = CardFactoryUtil.makeToken("Germ", "B 0 0 Germ", card.getController(), "B", types, 1, 1, keywords);
|
||||
|
||||
SpellAbility[] equipSA = card.getSpellAbility();
|
||||
SpellAbility specSA = equipSA[equipSA.length-1];
|
||||
specSA.setTargetCard(germs.get(0));
|
||||
specSA.resolve();
|
||||
for(Card c : germs)
|
||||
{
|
||||
c.setBaseAttack(0);
|
||||
c.setBaseDefense(0);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
final Trigger etbTrigger = TriggerHandler.parseTrigger("Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigOverriding | TriggerDescription$ Living Weapon (When this Equipment enters the battlefield, put a 0/0 black Germ creature token onto the battlefield, then attach this to it.)", card);
|
||||
etbTrigger.setOverridingAbility(etbAbility);
|
||||
|
||||
card.addTrigger(etbTrigger);
|
||||
}
|
||||
|
||||
return card;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user