mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Register LTB trigger extra during replacements (#5851)
Co-authored-by: TRT <>
This commit is contained in:
@@ -1388,6 +1388,10 @@ public class AbilityUtils {
|
|||||||
// Needed - Equip an untapped creature with Sword of the Paruns then cast Deadshot on it. Should deal 2 more damage.
|
// Needed - Equip an untapped creature with Sword of the Paruns then cast Deadshot on it. Should deal 2 more damage.
|
||||||
game.getAction().checkStaticAbilities(); // this will refresh continuous abilities for players and permanents.
|
game.getAction().checkStaticAbilities(); // this will refresh continuous abilities for players and permanents.
|
||||||
if (sa.isReplacementAbility()) {
|
if (sa.isReplacementAbility()) {
|
||||||
|
// register all LTB trigger from last state battlefield
|
||||||
|
for (Card lki : sa.getRootAbility().getLastStateBattlefield()) {
|
||||||
|
game.getTriggerHandler().registerActiveLTBTrigger(lki);
|
||||||
|
}
|
||||||
game.getTriggerHandler().collectTriggerForWaiting();
|
game.getTriggerHandler().collectTriggerForWaiting();
|
||||||
} else {
|
} else {
|
||||||
game.getTriggerHandler().resetActiveTriggers();
|
game.getTriggerHandler().resetActiveTriggers();
|
||||||
|
|||||||
Reference in New Issue
Block a user