mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Triggers shouldn't activate themselves, if they are already active (Fix for Flame-Wreath Phoenix)
This commit is contained in:
@@ -379,6 +379,15 @@ public class TriggerHandler {
|
||||
if (!regtrig.zonesCheck(game.getZoneOf(regtrig.getHostCard()))) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user