mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Fixed that Energy was getting sacrified when cards went to opponents' graveyards instead of yours.
This commit is contained in:
parent
67479bb5a4
commit
9ddbbc204a
1 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue