mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Fix static cleanup triggers
This commit is contained in:
@@ -228,7 +228,8 @@ public class TriggerChangesZone extends Trigger {
|
|||||||
boolean leavesBattlefield = ArrayUtils.contains(
|
boolean leavesBattlefield = ArrayUtils.contains(
|
||||||
getParam("Origin").split(","), ZoneType.Battlefield.toString()
|
getParam("Origin").split(","), ZoneType.Battlefield.toString()
|
||||||
);
|
);
|
||||||
if (leavesBattlefield) {
|
// Static triggers aren't triggered abilities rules-wise
|
||||||
|
if (leavesBattlefield && !isStatic()) {
|
||||||
setActiveZone(EnumSet.of(ZoneType.Battlefield));
|
setActiveZone(EnumSet.of(ZoneType.Battlefield));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user