mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- "Effect" effects that contain triggers will now be registered immediately instead of waiting for the next registration time.
This commit is contained in:
@@ -235,8 +235,11 @@ public class EffectEffect extends SpellAbilityEffect {
|
|||||||
|
|
||||||
// TODO: Add targeting to the effect so it knows who it's dealing with
|
// TODO: Add targeting to the effect so it knows who it's dealing with
|
||||||
game.getTriggerHandler().suppressMode(TriggerType.ChangesZone);
|
game.getTriggerHandler().suppressMode(TriggerType.ChangesZone);
|
||||||
game.getAction().moveTo(ZoneType.Command, eff);
|
Card cmdEffect = game.getAction().moveTo(ZoneType.Command, eff);
|
||||||
game.getTriggerHandler().clearSuppression(TriggerType.ChangesZone);
|
game.getTriggerHandler().clearSuppression(TriggerType.ChangesZone);
|
||||||
|
if (effectTriggers != null) {
|
||||||
|
game.getTriggerHandler().registerActiveTrigger(cmdEffect, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user