Fixed wrong duration of Wayfaring Temple static ability.

This commit is contained in:
LevelX2 2013-05-12 16:19:21 +02:00
parent bde1e90dfb
commit 7255f2cf15

View file

@ -29,9 +29,10 @@
package mage.sets.returntoravnica;
import java.util.UUID;
import mage.Constants;
import mage.Constants.CardType;
import mage.Constants.Duration;
import mage.Constants.Rarity;
import mage.Constants.Zone;
import mage.MageInt;
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility;
@ -58,7 +59,7 @@ public class WayfaringTemple extends CardImpl<WayfaringTemple> {
this.toughness = new MageInt(0);
// Wayfaring Temple's power and toughness are each equal to the number of creatures you control.
this.addAbility(new SimpleStaticAbility(Constants.Zone.ALL, new SetPowerToughnessSourceEffect(new PermanentsOnBattlefieldCount(new FilterControlledCreaturePermanent()), Constants.Duration.EndOfCombat)));
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new PermanentsOnBattlefieldCount(new FilterControlledCreaturePermanent()), Duration.EndOfGame)));
// Whenever Wayfaring Temple deals combat damage to a player, populate. (Put a token onto the battlefield that's a copy of a creature token you control.)
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new PopulateEffect(), false));
@ -72,4 +73,4 @@ public class WayfaringTemple extends CardImpl<WayfaringTemple> {
public WayfaringTemple copy() {
return new WayfaringTemple(this);
}
}
}