now, add Instill Energy

This commit is contained in:
jendave
2011-08-06 15:02:38 +00:00
parent c5de41eae9
commit 1dcd531156
3 changed files with 18 additions and 4 deletions

1
.gitattributes vendored
View File

@@ -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

View 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

View File

@@ -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){