Added IsEqippng check to ReplaceDamage. Added Pariah's Shield

This commit is contained in:
ArsenalNut
2012-01-27 18:03:20 +00:00
parent 2dfe647318
commit 3c27961f68
3 changed files with 18 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -6210,6 +6210,7 @@ res/cardsfolder/p/pardic_lancer.txt svneol=native#text/plain
res/cardsfolder/p/pardic_miner.txt -text res/cardsfolder/p/pardic_miner.txt -text
res/cardsfolder/p/pardic_swordsmith.txt svneol=native#text/plain res/cardsfolder/p/pardic_swordsmith.txt svneol=native#text/plain
res/cardsfolder/p/pariah.txt -text res/cardsfolder/p/pariah.txt -text
res/cardsfolder/p/pariahs_shield.txt -text
res/cardsfolder/p/part_the_veil.txt svneol=native#text/plain res/cardsfolder/p/part_the_veil.txt svneol=native#text/plain
res/cardsfolder/p/part_water.txt svneol=native#text/plain res/cardsfolder/p/part_water.txt svneol=native#text/plain
res/cardsfolder/p/past_in_flames.txt -text res/cardsfolder/p/past_in_flames.txt -text

View File

@@ -0,0 +1,14 @@
Name:Pariah's Shield
ManaCost:5
Types:Artifact Equipment
Text:no text
K:eqPump 3:+0/+0
R:Event$ DamageDone | ValidTarget$ You | ReplaceWith$ DmgEquipped | IsCombat$ False | IsEquipping$ True | Description$ All damage that would be dealt to you is dealt to equipped creature instead.
R:Event$ DamageDone | ValidTarget$ You | ReplaceWith$ DmgEquippedCombat | IsCombat$ True | IsEquipping$ True
SVar:DmgEquipped:AB$DealDamage | Cost$ 0 | Defined$ Equipped | DamageSource$ ReplacedSource | NumDmg$ X
SVar:DmgEquippedCombat:AB$DealDamage | Cost$ 0 | CombatDamage$ True | Defined$ Equipped | DamageSource$ ReplacedSource | NumDmg$ X
SVar:X:ReplaceCount$DamageAmount
SVar:Picture:http://www.wizards.com/global/images/magic/general/pariahs_shield.jpg
SetInfo:RAV|Rare|http://magiccards.info/scans/en/rav/267.jpg
Oracle:All damage that would be dealt to you is dealt to equipped creature instead.\nEquip {3}
End

View File

@@ -85,6 +85,9 @@ public class ReplaceDamage extends ReplacementEffect {
} }
} }
} }
if (getMapParams().containsKey("IsEquipping") && !getHostCard().isEquipping()) {
return false;
}
return true; return true;
} }