- Added the keyword "If damage would be dealt to CARDNAME, prevent that damage. Remove a +1/+1 counter from CARDNAME."

- Added Phantom Tiger.
This commit is contained in:
jendave
2011-08-06 13:55:23 +00:00
parent 843d50b595
commit 199f5aac4f
3 changed files with 19 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -3559,6 +3559,7 @@ res/cardsfolder/phantom_beast.txt -text svneol=native#text/plain
res/cardsfolder/phantom_centaur.txt -text svneol=native#text/plain
res/cardsfolder/phantom_monster.txt -text svneol=native#text/plain
res/cardsfolder/phantom_nishoba.txt -text svneol=native#text/plain
res/cardsfolder/phantom_tiger.txt -text svneol=native#text/plain
res/cardsfolder/phantom_warrior.txt -text svneol=native#text/plain
res/cardsfolder/phobian_phantasm.txt -text svneol=native#text/plain
res/cardsfolder/phylactery_lich.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,11 @@
Name:Phantom Tiger
ManaCost:2 G
Types:Creature Cat Spirit
Text:no text
PT:1/0
K:etbCounter:P1P1:2
K:If damage would be dealt to CARDNAME, prevent that damage. Remove a +1/+1 counter from CARDNAME.
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/phantom_tiger.jpg
End

View File

@@ -2875,6 +2875,13 @@ public class Card extends MyObservable {
restDamage = staticDamagePrevention(restDamage, source, isCombat);
if(restDamage == 0) return 0;
if (this.hasKeyword("If damage would be dealt to CARDNAME, prevent that damage. Remove a +1/+1 counter from CARDNAME.")) {
restDamage = 0;
this.subtractCounter(Counters.P1P1, 1);
}
if(restDamage >= preventNextDamage) {
restDamage = restDamage - preventNextDamage;
preventNextDamage = 0;