forked from External/mage
rework PhantomReplacementEffect used by 7 Phantom cards (#12189)
This commit is contained in:
parent
6193c9aee6
commit
d645facdc0
15 changed files with 366 additions and 62 deletions
|
|
@ -1024,6 +1024,9 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
}
|
||||
DamageEvent event = new DamagePermanentEvent(objectId, attackerId, controllerId, damageAmount, preventable, combat);
|
||||
event.setAppliedEffects(appliedEffects);
|
||||
// Even if no damage was dealt, some watchers would need a reset next time actions are processed.
|
||||
// For instance PhantomPreventionWatcher used by the [[Phantom Wurm]] type of replacement effect.
|
||||
game.getState().addBatchDamageCouldHaveBeenFired(combat, game);
|
||||
if (game.replaceEvent(event)) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue