mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- 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:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
11
res/cardsfolder/phantom_tiger.txt
Normal file
11
res/cardsfolder/phantom_tiger.txt
Normal 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
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user