* Supend - Fixed that the haste ability lasted also if a creature brought into play by supend if the creature leftz and returned the battlefield by another effect than suspend.

This commit is contained in:
LevelX2 2015-09-05 11:51:02 +02:00
parent 328c6bd461
commit 411ea27772
2 changed files with 7 additions and 10 deletions

View file

@ -28,8 +28,6 @@
package mage.sets.timespiral;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
@ -38,6 +36,8 @@ import mage.abilities.effects.common.ReturnToHandTargetEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.SuspendAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.target.TargetPermanent;
/**
@ -62,7 +62,7 @@ public class RiftwingCloudskate extends CardImpl {
this.addAbility(ability);
// Suspend 3-{1}{U}
this.addAbility(new SuspendAbility(3, new ManaCostsImpl("{1}{U}"),this));
this.addAbility(new SuspendAbility(3, new ManaCostsImpl("{1}{U}"), this));
}
public RiftwingCloudskate(final RiftwingCloudskate card) {

View file

@ -409,14 +409,11 @@ class GainHasteEffect extends ContinuousEffectImpl {
suspendController = source.getControllerId();
}
Permanent permanent = game.getPermanent(source.getSourceId());
if (permanent != null) {
if (suspendController.equals(source.getControllerId())) {
permanent.addAbility(HasteAbility.getInstance(), source.getSourceId(), game);
return true;
} else {
this.discard();
}
if (permanent != null && suspendController.equals(source.getControllerId())) {
permanent.addAbility(HasteAbility.getInstance(), source.getSourceId(), game);
return true;
}
this.discard();
return false;
}