Register LTB trigger extra during replacements (#5851)

Co-authored-by: TRT <>
This commit is contained in:
tool4ever
2024-08-06 03:31:09 +00:00
committed by GitHub
parent 140791ead7
commit 6268448dfe

View File

@@ -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();