fixed copies of Approach of the Second Sun not working correctly

This commit is contained in:
Evan Kranzler 2017-09-26 17:52:17 -04:00
parent d2d6231ab3
commit f7931692ab

View file

@ -63,7 +63,10 @@ class ApproachOfTheSecondSunEffect extends OneShotEffect {
if (controller != null && spell != null) {
ApproachOfTheSecondSunWatcher watcher
= (ApproachOfTheSecondSunWatcher) game.getState().getWatchers().get(ApproachOfTheSecondSunWatcher.class.getSimpleName());
if (watcher != null && watcher.getApproachesCast(controller.getId()) > 1 && spell.getFromZone() == Zone.HAND) {
if (watcher != null
&& !spell.isCopiedSpell()
&& watcher.getApproachesCast(controller.getId()) > 1
&& spell.getFromZone() == Zone.HAND) {
// Win the game
controller.won(game);
} else {
@ -71,6 +74,9 @@ class ApproachOfTheSecondSunEffect extends OneShotEffect {
controller.gainLife(7, game);
// Put this into the library as the 7th from the top
if (spell.isCopiedSpell()) {
return true;
}
Card spellCard = game.getStack().getSpell(source.getSourceId()).getCard();
if (spellCard != null) {
List<Card> top6 = new ArrayList<>();