- Triggers shouldn't activate themselves, if they are already active (Fix for Flame-Wreath Phoenix)

This commit is contained in:
Sol
2015-07-18 17:16:36 +00:00
parent e8cc3d5c20
commit 7b5b85ec8c

View File

@@ -379,6 +379,15 @@ public class TriggerHandler {
if (!regtrig.zonesCheck(game.getZoneOf(regtrig.getHostCard()))) { if (!regtrig.zonesCheck(game.getZoneOf(regtrig.getHostCard()))) {
return false; // Host card isn't where it needs to be. return false; // Host card isn't where it needs to be.
} }
for (Trigger t : this.activeTriggers) {
// If an ID that matches this ID is already active, don't add it
if (regtrig.getId() == t.getId()) {
return false;
}
}
// Check if a trigger with the same ID is already in activeTriggers
return true; return true;
} }