mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
now, add Instill Energy
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -2556,6 +2556,7 @@ res/cardsfolder/inspiration.txt -text svneol=native#text/plain
|
|||||||
res/cardsfolder/inspired_charge.txt -text svneol=native#text/plain
|
res/cardsfolder/inspired_charge.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/inspired_sprite.txt -text svneol=native#text/plain
|
res/cardsfolder/inspired_sprite.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/inspirit.txt -text svneol=native#text/plain
|
res/cardsfolder/inspirit.txt -text svneol=native#text/plain
|
||||||
|
res/cardsfolder/instill_energy.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/instill_furor.txt -text svneol=native#text/plain
|
res/cardsfolder/instill_furor.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/instill_infection.txt -text svneol=native#text/plain
|
res/cardsfolder/instill_infection.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/insurrection.txt -text svneol=native#text/plain
|
res/cardsfolder/insurrection.txt -text svneol=native#text/plain
|
||||||
|
|||||||
13
res/cardsfolder/instill_energy.txt
Normal file
13
res/cardsfolder/instill_energy.txt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Name:Instill Energy
|
||||||
|
ManaCost:G
|
||||||
|
Types:Enchantment Aura
|
||||||
|
Text:no text
|
||||||
|
K:Enchant creature
|
||||||
|
K:enPump:0/0
|
||||||
|
A:AB$Untap | Cost$ 0 | PlayerTurn$True | ActivationLimit$ 1 | Defined$ Enchanted | SpellDescription$ Untap enchanted creature. Activate this ability only during your turn and only once each turn.
|
||||||
|
SVar:PlayMain1:True
|
||||||
|
#AI can't use this effectively right now
|
||||||
|
SVar:RemAIDeck:True
|
||||||
|
SVar:Rarity:Uncommon
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/instill_energy.jpg
|
||||||
|
End
|
||||||
@@ -84,6 +84,8 @@ public class AbilityFactory_PermanentState {
|
|||||||
public static String untapStackDescription(AbilityFactory af, SpellAbility sa){
|
public static String untapStackDescription(AbilityFactory af, SpellAbility sa){
|
||||||
// when getStackDesc is called, just build exactly what is happening
|
// when getStackDesc is called, just build exactly what is happening
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
final HashMap<String,String> params = af.getMapParams();
|
||||||
|
Card hostCard = sa.getSourceCard();
|
||||||
|
|
||||||
if (sa instanceof Ability_Sub)
|
if (sa instanceof Ability_Sub)
|
||||||
sb.append(" ");
|
sb.append(" ");
|
||||||
@@ -97,8 +99,7 @@ public class AbilityFactory_PermanentState {
|
|||||||
if (tgt != null)
|
if (tgt != null)
|
||||||
tgtCards = tgt.getTargetCards();
|
tgtCards = tgt.getTargetCards();
|
||||||
else{
|
else{
|
||||||
tgtCards = new ArrayList<Card>();
|
tgtCards = AbilityFactory.getDefinedCards(hostCard, params.get("Defined"), sa);
|
||||||
tgtCards.add(af.getHostCard());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for(Card c : tgtCards)
|
for(Card c : tgtCards)
|
||||||
@@ -252,8 +253,7 @@ public class AbilityFactory_PermanentState {
|
|||||||
if (tgt != null)
|
if (tgt != null)
|
||||||
tgtCards = tgt.getTargetCards();
|
tgtCards = tgt.getTargetCards();
|
||||||
else{
|
else{
|
||||||
tgtCards = new ArrayList<Card>();
|
tgtCards = AbilityFactory.getDefinedCards(card, params.get("Defined"), sa);
|
||||||
tgtCards.add(card);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for(Card tgtC : tgtCards){
|
for(Card tgtC : tgtCards){
|
||||||
|
|||||||
Reference in New Issue
Block a user