- Changed the dealdamage ability_factory to work without the Tgt parameter (to support ValidTgt only).

- Added Armed Response.
This commit is contained in:
jendave
2011-08-06 09:14:35 +00:00
parent 6f8549791b
commit 258a6e8052
3 changed files with 17 additions and 4 deletions

1
.gitattributes vendored
View File

@@ -222,6 +222,7 @@ res/cardsfolder/arid_mesa.txt -text svneol=native#text/plain
res/cardsfolder/ark_of_blight.txt -text svneol=native#text/plain
res/cardsfolder/armadillo_cloak.txt -text svneol=native#text/plain
res/cardsfolder/armageddon.txt -text svneol=native#text/plain
res/cardsfolder/armed_response.txt -text svneol=native#text/plain
res/cardsfolder/armistice.txt -text svneol=native#text/plain
res/cardsfolder/armored_cancrix.txt -text svneol=native#text/plain
res/cardsfolder/armored_galleon.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,10 @@
Name:Armed Response
ManaCost:2 W
Types:Instant
Text:no text
A:SP$DealDamage|Cost$2 W|ValidTgts$Creature.attacking|TgtPrompt$Select target Creature|NumDmg$X|SpellDescription$Armed Response deals damage to target attacking creature equal to the number of Equipment you control.
SVar:X:Count$Valid Equipment.YouCtrl
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/armed_response.jpg
End

View File

@@ -21,8 +21,9 @@ public class AbilityFactory_DealDamage {
nDamage = NumDmg;
XDamage = NumDmgX;
if (AF.getMapParams().get("Tgt").equals("TgtOpp"))
TgtOpp = true;
if(af.getMapParams().containsKey("Tgt"))
if (AF.getMapParams().get("Tgt").equals("TgtOpp"))
TgtOpp = true;
final SpellAbility abDamage = new Ability_Activated(AF.getHostCard(), AF.getAbCost(), AF.getAbTgt())
{
@@ -58,8 +59,9 @@ public class AbilityFactory_DealDamage {
nDamage = NumDmg;
XDamage = NumDmgX;
if (AF.getMapParams().get("Tgt").equals("TgtOpp"))
TgtOpp = true;
if(af.getMapParams().containsKey("Tgt"))
if (AF.getMapParams().get("Tgt").equals("TgtOpp"))
TgtOpp = true;
final SpellAbility spDealDamage = new Spell(AF.getHostCard(), AF.getAbCost(), AF.getAbTgt()) {
private static final long serialVersionUID = 7239608350643325111L;