mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Added the player keyword "Prevent all damage that would be dealt to you".
- Added Personal Sanctuary.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -5656,6 +5656,7 @@ res/cardsfolder/p/perish.txt svneol=native#text/plain
|
||||
res/cardsfolder/p/perish_the_thought.txt svneol=native#text/plain
|
||||
res/cardsfolder/p/permafrost_trap.txt svneol=native#text/plain
|
||||
res/cardsfolder/p/pernicious_deed.txt svneol=native#text/plain
|
||||
res/cardsfolder/p/personal_sanctuary.txt -text
|
||||
res/cardsfolder/p/personal_tutor.txt svneol=native#text/plain
|
||||
res/cardsfolder/p/persuasion.txt svneol=native#text/plain
|
||||
res/cardsfolder/p/pestermite.txt svneol=native#text/plain
|
||||
|
||||
10
res/cardsfolder/p/personal_sanctuary.txt
Normal file
10
res/cardsfolder/p/personal_sanctuary.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
Name:Personal Sanctuary
|
||||
ManaCost:2 W
|
||||
Types:Enchantment
|
||||
Text:no text
|
||||
S:Mode$ Continuous | Affected$ You | AddKeyword$ Prevent all damage that would be dealt to you | PlayerTurn$ True | Description$ During your turn, prevent all damage that would be dealt to you.
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/personal_sanctuary.jpg
|
||||
SetInfo:M12|Rare|http://magiccards.info/scans/en/m12/30.jpg
|
||||
Oracle:During your turn, prevent all damage that would be dealt to you.
|
||||
End
|
||||
@@ -403,6 +403,10 @@ public abstract class Player extends GameEntity {
|
||||
if (source.hasKeyword("Prevent all damage that would be dealt to and dealt by CARDNAME.")) return 0;
|
||||
if (source.hasKeyword("Prevent all damage that would be dealt by CARDNAME.")) return 0;
|
||||
if (AllZoneUtil.isCardInPlay("Purity", this) && !isCombat) return 0;
|
||||
|
||||
if (hasKeyword("Prevent all damage that would be dealt to you")) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
//stPreventDamage
|
||||
CardList allp = AllZoneUtil.getCardsIn(Zone.Battlefield);
|
||||
|
||||
Reference in New Issue
Block a user