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
|
|
@ -818,6 +818,16 @@ public class GameState implements Serializable, Copyable<GameState> {
|
|||
return !simultaneousEvents.isEmpty();
|
||||
}
|
||||
|
||||
// There might be no damage dealt, but we want to fire that damage (in a batch) could have been dealt.
|
||||
public void addBatchDamageCouldHaveBeenFired(boolean combat, Game game) {
|
||||
for (GameEvent event : simultaneousEvents) {
|
||||
if (event instanceof DamagedBatchCouldHaveFiredEvent && event.getFlag() == combat) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
addSimultaneousEvent(new DamagedBatchCouldHaveFiredEvent(combat), game);
|
||||
}
|
||||
|
||||
public void addSimultaneousDamage(DamagedEvent damagedEvent, Game game) {
|
||||
// Combine multiple damage events in the single event (batch)
|
||||
// Note: one event can be stored in multiple batches
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue