mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Added IsEqippng check to ReplaceDamage. Added Pariah's Shield
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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_swordsmith.txt svneol=native#text/plain
|
||||
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_water.txt svneol=native#text/plain
|
||||
res/cardsfolder/p/past_in_flames.txt -text
|
||||
|
||||
14
res/cardsfolder/p/pariahs_shield.txt
Normal file
14
res/cardsfolder/p/pariahs_shield.txt
Normal 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
|
||||
@@ -85,6 +85,9 @@ public class ReplaceDamage extends ReplacementEffect {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getMapParams().containsKey("IsEquipping") && !getHostCard().isEquipping()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user