mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Changed the dealdamage ability_factory to work without the Tgt parameter (to support ValidTgt only).
- Added Armed Response.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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/ark_of_blight.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/armadillo_cloak.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/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/armistice.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/armored_cancrix.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
|
res/cardsfolder/armored_galleon.txt -text svneol=native#text/plain
|
||||||
|
|||||||
10
res/cardsfolder/armed_response.txt
Normal file
10
res/cardsfolder/armed_response.txt
Normal 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
|
||||||
@@ -21,8 +21,9 @@ public class AbilityFactory_DealDamage {
|
|||||||
nDamage = NumDmg;
|
nDamage = NumDmg;
|
||||||
XDamage = NumDmgX;
|
XDamage = NumDmgX;
|
||||||
|
|
||||||
if (AF.getMapParams().get("Tgt").equals("TgtOpp"))
|
if(af.getMapParams().containsKey("Tgt"))
|
||||||
TgtOpp = true;
|
if (AF.getMapParams().get("Tgt").equals("TgtOpp"))
|
||||||
|
TgtOpp = true;
|
||||||
|
|
||||||
final SpellAbility abDamage = new Ability_Activated(AF.getHostCard(), AF.getAbCost(), AF.getAbTgt())
|
final SpellAbility abDamage = new Ability_Activated(AF.getHostCard(), AF.getAbCost(), AF.getAbTgt())
|
||||||
{
|
{
|
||||||
@@ -58,8 +59,9 @@ public class AbilityFactory_DealDamage {
|
|||||||
nDamage = NumDmg;
|
nDamage = NumDmg;
|
||||||
XDamage = NumDmgX;
|
XDamage = NumDmgX;
|
||||||
|
|
||||||
if (AF.getMapParams().get("Tgt").equals("TgtOpp"))
|
if(af.getMapParams().containsKey("Tgt"))
|
||||||
TgtOpp = true;
|
if (AF.getMapParams().get("Tgt").equals("TgtOpp"))
|
||||||
|
TgtOpp = true;
|
||||||
|
|
||||||
final SpellAbility spDealDamage = new Spell(AF.getHostCard(), AF.getAbCost(), AF.getAbTgt()) {
|
final SpellAbility spDealDamage = new Spell(AF.getHostCard(), AF.getAbCost(), AF.getAbTgt()) {
|
||||||
private static final long serialVersionUID = 7239608350643325111L;
|
private static final long serialVersionUID = 7239608350643325111L;
|
||||||
|
|||||||
Reference in New Issue
Block a user