mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
WrappedAbility: remove faulty check
This commit is contained in:
@@ -476,35 +476,6 @@ public class WrappedAbility extends Ability {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check timestamps of triggered objects
|
||||
final List<Object> original = Lists.newArrayList(sa.getTriggerRemembered());
|
||||
for (Object o : original) {
|
||||
if (o instanceof Card) {
|
||||
Card card = (Card) o;
|
||||
Card current = game.getCardState(card);
|
||||
if (current.getTimestamp() != card.getTimestamp()) {
|
||||
// TODO: figure out if NoTimestampCheck should be the default for ChangesZone triggers
|
||||
if (!triggerParams.containsKey("NoTimestampCheck")) {
|
||||
sa.getTriggerRemembered().remove(o);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
final Map<String, Object> triggerMap = new HashMap<String, Object>(sa.getTriggeringObjects());
|
||||
for (Entry<String, Object> ev : triggerMap.entrySet()) {
|
||||
if (ev.getValue() instanceof Card) {
|
||||
Card card = (Card) ev.getValue();
|
||||
Card current = game.getCardState(card);
|
||||
if (card.isInPlay() && current.isInPlay() && current.getTimestamp() != card.getTimestamp()) {
|
||||
// TODO: figure out if NoTimestampCheck should be the default for ChangesZone triggers
|
||||
if (!triggerParams.containsKey("NoTimestampCheck")) {
|
||||
sa.getTriggeringObjects().remove(ev.getKey());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// TODO: CardCollection
|
||||
|
||||
getActivatingPlayer().getController().playSpellAbilityNoStack(sa, false);
|
||||
|
||||
// Add eventual delayed trigger.
|
||||
|
||||
Reference in New Issue
Block a user