- Added Tahngarth's Glare

This commit is contained in:
swordshine
2014-06-05 02:21:47 +00:00
parent 36e45a4cf4
commit cc79d33206
3 changed files with 15 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -13047,6 +13047,7 @@ forge-gui/res/cardsfolder/t/tablet_of_epityr.txt svneol=native#text/plain
forge-gui/res/cardsfolder/t/tablet_of_the_guilds.txt -text
forge-gui/res/cardsfolder/t/tahngarth.txt -text
forge-gui/res/cardsfolder/t/tahngarth_talruum_hero.txt svneol=native#text/plain
forge-gui/res/cardsfolder/t/tahngarths_glare.txt -text
forge-gui/res/cardsfolder/t/tahngarths_rage.txt svneol=native#text/plain
forge-gui/res/cardsfolder/t/taiga.txt svneol=native#text/plain
forge-gui/res/cardsfolder/t/tainted_aether.txt svneol=native#text/plain

View File

@@ -13,6 +13,8 @@ import forge.util.Lang;
import java.util.ArrayList;
import java.util.List;
import com.google.common.collect.Iterables;
public class RearrangeTopOfLibraryEffect extends SpellAbilityEffect {
/* (non-Javadoc)
@@ -99,7 +101,11 @@ public class RearrangeTopOfLibraryEffect extends SpellAbilityEffect {
* a boolean.
*/
private void rearrangeTopOfLibrary(final Card src, final Player player, final int numCards, final boolean mayshuffle, final SpellAbility sa) {
final Player activator = sa.getActivatingPlayer();
final Player activator = sa.hasParam("RearrangePlayer") ? Iterables.getFirst(AbilityUtils.getDefinedPlayers(src, sa.getParam("RearrangePlayer"), sa), null)
: sa.getActivatingPlayer();
if (activator == null) {
return;
}
final PlayerZone lib = player.getZone(ZoneType.Library);
int maxCards = lib.size();
// If library is smaller than N, only show that many cards

View File

@@ -0,0 +1,7 @@
Name:Tahngarth's Glare
ManaCost:R
Types:Sorcery
A:SP$ RearrangeTopOfLibrary | Cost$ R | ValidTgts$ Opponent | NumCards$ 3 | SubAbility$ DBRearange | SpellDescription$ Look at the top three cards of target opponent's library, then put them back in any order. That player looks at the top three cards of your library, then puts them back in any order.
SVar:DBRearange:DB$ RearrangeTopOfLibrary | Defined$ You | RearrangePlayer$ Targeted | NumCards$ 3
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/tahngarths_glare.jpg