mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
WrappedAbility: fix TriggeredRemembered being sacrificed
This commit is contained in:
committed by
Michael Kamensky
parent
35ca083650
commit
584b6bd81e
@@ -17,7 +17,6 @@ import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
// Wrapper ability that checks the requirements again just before
|
||||
@@ -487,18 +486,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
|
||||
sa.getTriggerRemembered().remove(o);
|
||||
}
|
||||
}
|
||||
}
|
||||
final Map<AbilityKey, Object> triggerMap = AbilityKey.newMap(sa.getTriggeringObjects());
|
||||
for (Entry<AbilityKey, Object> ev : triggerMap.entrySet()) {
|
||||
if (ev.getValue() instanceof Card) {
|
||||
|
||||
Reference in New Issue
Block a user