Stored objects for cards are removed at the end of each turn.
This commit is contained in:
@@ -53,8 +53,6 @@ public class Card1_266 extends AbstractMinion {
|
||||
return Collections.singletonList(action);
|
||||
}
|
||||
}
|
||||
if (effectResult.getType() == EffectResult.Type.END_OF_TURN)
|
||||
self.removeData();
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -50,9 +50,6 @@ public class Card1_338 extends AbstractSite {
|
||||
if (TriggerConditions.played(game, effectResult, Race.NAZGUL)
|
||||
&& game.getGameState().getCurrentSite() == self)
|
||||
self.storeData(new Object());
|
||||
if (effectResult.getType() == EffectResult.Type.END_OF_TURN
|
||||
&& self.getData() != null)
|
||||
self.removeData();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,9 +28,7 @@ public class Card1_342 extends AbstractSite {
|
||||
|
||||
@Override
|
||||
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||
if (effectResult.getType() == EffectResult.Type.END_OF_TURN)
|
||||
self.removeData();
|
||||
else if (game.getGameState().getCurrentSite() == self
|
||||
if (game.getGameState().getCurrentSite() == self
|
||||
&& self.getData() == null
|
||||
&& Filters.canSpot(game.getGameState(), game.getModifiersQuerying(), Keyword.RANGER)) {
|
||||
self.storeData(new Object());
|
||||
|
||||
@@ -8,9 +8,7 @@ import com.gempukku.lotro.filters.Filters;
|
||||
import com.gempukku.lotro.game.PhysicalCard;
|
||||
import com.gempukku.lotro.game.state.LotroGame;
|
||||
import com.gempukku.lotro.logic.actions.ActivateCardAction;
|
||||
import com.gempukku.lotro.logic.actions.RequiredTriggerAction;
|
||||
import com.gempukku.lotro.logic.timing.Action;
|
||||
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@@ -41,12 +39,4 @@ public class Card1_348 extends AbstractSite {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||
if (effectResult.getType() == EffectResult.Type.END_OF_TURN
|
||||
&& self.getData() != null)
|
||||
self.removeData();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,9 +49,6 @@ public class Card1_350 extends AbstractSite {
|
||||
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||
if (TriggerConditions.played(game, effectResult, Filters.and(Culture.MORIA, Race.ORC)))
|
||||
self.storeData(new Object());
|
||||
if (effectResult.getType() == EffectResult.Type.END_OF_TURN
|
||||
&& self.getData() != null)
|
||||
self.removeData();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,9 +50,6 @@ public class Card4_347 extends AbstractSite {
|
||||
if (TriggerConditions.played(game, effectResult, Race.URUK_HAI)
|
||||
&& game.getGameState().getCurrentSite() == self)
|
||||
self.storeData(new Object());
|
||||
if (effectResult.getType() == EffectResult.Type.END_OF_TURN
|
||||
&& self.getData() != null)
|
||||
self.removeData();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,9 +39,6 @@ public class Card4_359 extends AbstractSite {
|
||||
&& game.getGameState().getCurrentPhase() == Phase.SHADOW) {
|
||||
self.storeData(new Object());
|
||||
}
|
||||
if (effectResult.getType() == EffectResult.Type.END_OF_TURN) {
|
||||
self.removeData();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,9 +58,6 @@ public class Card5_102 extends AbstractPermanent {
|
||||
if (TriggerConditions.played(game, effectResult, Culture.SAURON, Race.ORC)
|
||||
&& Filters.and(Filters.siteNumber(4), Filters.siteBlock(Block.TWO_TOWERS)).accepts(game.getGameState(), game.getModifiersQuerying(), game.getGameState().getCurrentSite()))
|
||||
self.storeData(new Object());
|
||||
if (effectResult.getType() == EffectResult.Type.END_OF_TURN
|
||||
&& self.getData() != null)
|
||||
self.removeData();
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user