Fix Blitz not being cleaned up when the permanent leaved the BF (#9775)

A onCard: false parameter was necessary to clean the effect once the blitz creature leaved the battlefield.
This commit is contained in:
Susucre 2023-06-12 05:55:23 +02:00 committed by GitHub
parent 2cdfb255cf
commit 70fa98f492
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 1 deletions

View file

@ -38,7 +38,7 @@ public class BlitzAbility extends SpellAbility {
);
ability.addEffect(new GainAbilitySourceEffect(new DiesSourceTriggeredAbility(
new DrawCardSourceControllerEffect(1)
).setTriggerPhrase("When this creature dies, ")));
).setTriggerPhrase("When this creature dies, "), Duration.Custom, false));
ability.addEffect(new BlitzAddDelayedTriggeredAbilityEffect());
ability.setRuleVisible(false);
addSubAbility(ability);