Fixed that Energy was getting sacrified when cards went to opponents' graveyards instead of yours.

This commit is contained in:
emerald000 2014-11-25 22:20:55 -05:00
parent 67479bb5a4
commit 9ddbbc204a

View file

@ -28,16 +28,15 @@
package mage.sets.urzassaga;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.Ability;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.PreventionEffectImpl;
import mage.abilities.effects.common.SacrificeSourceEffect;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.game.Game;
import mage.game.events.GameEvent;
@ -117,8 +116,6 @@ class EnergyFieldEffect extends PreventionEffectImpl {
class PutIntoYourGraveyardTriggeredAbility extends TriggeredAbilityImpl {
public PutIntoYourGraveyardTriggeredAbility() {
super(Zone.BATTLEFIELD, new SacrificeSourceEffect(), false);
}
@ -137,7 +134,7 @@ class PutIntoYourGraveyardTriggeredAbility extends TriggeredAbilityImpl {
if (event.getType() == GameEvent.EventType.ZONE_CHANGE) {
ZoneChangeEvent zEvent = (ZoneChangeEvent) event;
if (zEvent.getToZone() == Zone.GRAVEYARD) {
if(game.getControllerId(event.getTargetId()) != this.getControllerId()){
if (game.getControllerId(event.getTargetId()) == this.getControllerId()){
return true;
}
}