* The Flame of Keld - Fixed game exception during copy.
package mage.cards.t;
import java.util.UUID;
-
import mage.MageObject;
import mage.abilities.Ability;
import mage.abilities.common.SagaAbility;
-import mage.abilities.effects.ContinuousEffect;
import mage.abilities.effects.ReplacementEffectImpl;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.discard.DiscardHandControllerEffect;
-import mage.constants.*;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
+import mage.constants.*;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.permanent.Permanent;
@@ -116,8 +114,7 @@ class TheFlameOfKeldDamageEffect extends ReplacementEffectImpl {
Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(event.getSourceId());
if (sourcePermanent == null) {
sourceObject = game.getObject(event.getSourceId());
- }
- else {
+ } else {
sourceObject = sourcePermanent;
}
return sourceObject != null && sourceObject.getColor(game).isRed() && !sourceObject.getId().equals(source.getSourceId());
@@ -126,7 +123,8 @@ class TheFlameOfKeldDamageEffect extends ReplacementEffectImpl {
}
@Override
- public ContinuousEffect copy() {
- return null;
+ public TheFlameOfKeldDamageEffect copy() {
+ return new TheFlameOfKeldDamageEffect(this);
}
+
}
