- Added Gaze of the Gorgon.

This commit is contained in:
jeffwadsworth
2012-02-23 22:32:25 +00:00
parent dc6afe270d
commit bde08882ed
3 changed files with 32 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -3343,6 +3343,7 @@ res/cardsfolder/g/gavony_township.txt -text
res/cardsfolder/g/gaze_of_adamaro.txt svneol=native#text/plain
res/cardsfolder/g/gaze_of_justice.txt svneol=native#text/plain
res/cardsfolder/g/gaze_of_pain.txt svneol=native#text/plain
res/cardsfolder/g/gaze_of_the_gorgon.txt -text svneol=unset#text/plain
res/cardsfolder/g/geist_honored_monk.txt -text
res/cardsfolder/g/geist_of_saint_traft.txt -text
res/cardsfolder/g/geistcatchers_rig.txt -text

View File

@@ -0,0 +1,11 @@
Name:Gaze of the Gorgon
ManaCost:3 BG
Types:Instant
Text:no text
A:SP$ Regenerate | Cost$ 3 BG | ValidTgts$ Creature | TgtPrompt$ Select target creature | SubAbility$ TrigGorgonEffect | SpellDescription$ Regenerate target creature. At end of combat, destroy all creatures that blocked or were blocked by that creature this turn.
SVar:TrigGorgonEffect:DB$ Effect | Name$ Gaze of the Gorgon Effect | Triggers$ DelGorgonTrig | SVars$ TrigGorgonDestroy | RememberObjects$ Targeted
SVar:DelGorgonTrig:Mode$ Phase | Phase$ EndCombat | TriggerZones$ Battlefield | ValidPlayer$ Player | Execute$ TrigGorgonDestroy | TriggerDescription$ At end of combat, destroy all creatures that blocked or were blocked by that creature this turn.
SVar:TrigGorgonDestroy:AB$ DestroyAll | Cost$ 0 | ValidCards$ Creature.blockingHostRemembered,Creature.blockedByHostRemembered
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/gaze_of_the_gorgon.jpg
End

View File

@@ -7115,6 +7115,26 @@ public class Card extends GameEntity implements Comparable<Card> {
if (!this.isBlocking(source)) {
return false;
}
} else if (property.startsWith("blockingHostRemembered")) {
Card rememberedcard;
for (final Object o : source.getRemembered()) {
if (o instanceof Card) {
rememberedcard = (Card) o;
if (!this.isBlocking(rememberedcard)) {
return false;
}
}
}
} else if (property.startsWith("blockedByHostRemembered")) {
Card rememberedcard;
for (final Object o : source.getRemembered()) {
if (o instanceof Card) {
rememberedcard = (Card) o;
if (!this.isBlockedBy(rememberedcard)) {
return false;
}
}
}
} else if (property.startsWith("notblocking")) {
if (this.isBlocking()) {
return false;