- Added the player keyword "Prevent all damage that would be dealt to you".

- Added Personal Sanctuary.
This commit is contained in:
Sloth
2011-09-25 11:22:40 +00:00
parent 063ea05f16
commit 5ce48e46ec
3 changed files with 15 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -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

View 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

View File

@@ -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);