diff --git a/.gitattributes b/.gitattributes index 2429b28e9a8..56e09830e61 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8195,6 +8195,7 @@ res/cardsfolder/s/siege_of_towers.txt svneol=native#text/plain res/cardsfolder/s/siege_wurm.txt -text res/cardsfolder/s/sift.txt svneol=native#text/plain res/cardsfolder/s/sift_through_sands.txt -text +res/cardsfolder/s/sigarda_host_of_herons.txt -text res/cardsfolder/s/sighted_caste_sorcerer.txt svneol=native#text/plain res/cardsfolder/s/sightless_ghoul.txt -text res/cardsfolder/s/sigil_blessing.txt svneol=native#text/plain diff --git a/res/cardsfolder/s/sigarda_host_of_herons.txt b/res/cardsfolder/s/sigarda_host_of_herons.txt new file mode 100644 index 00000000000..3fc1ea38155 --- /dev/null +++ b/res/cardsfolder/s/sigarda_host_of_herons.txt @@ -0,0 +1,13 @@ +Name:Sigarda, Host of Herons +ManaCost:2 G W W +Types:Legendary Creature Angel +Text:no text +PT:5/5 +K:Flying +K:Hexproof +S:Mode$ Continuous | Affected$ You | AddKeyword$ Spells and abilities your opponents control can't cause you to sacrifice permanents. | Description$ Spells and abilities your opponents control can't cause you to sacrifice permanents. +SVar:Rarity:Mythic +SVar:Picture:http://www.wizards.com/global/images/magic/general/sigarda_host_of_herons.jpg +SetInfo:AVR|Mythic|http://magiccards.info/scans/en/avr/210.jpg +Oracle:Flying, hexproof\nSpells and abilities your opponents control can't cause you to sacrifice permanents. +End \ No newline at end of file diff --git a/src/main/java/forge/GameAction.java b/src/main/java/forge/GameAction.java index 0b5570ba06d..8f6b344fb53 100644 --- a/src/main/java/forge/GameAction.java +++ b/src/main/java/forge/GameAction.java @@ -1174,6 +1174,8 @@ public class GameAction { * * @param c * a {@link forge.Card} object. + * @param source + * a SpellAbility object. * @return a boolean. */ public final boolean sacrifice(final Card c, final SpellAbility source) { @@ -1181,6 +1183,11 @@ public class GameAction { System.out.println("Trying to sacrifice immutables: " + c); return false; } + if (source != null && !c.getController().equals(source.getActivatingPlayer()) + && c.getController().hasKeyword("Spells and abilities your opponents control can't cause" + + " you to sacrifice permanents.")) { + return false; + } this.sacrificeDestroy(c); // Run triggers