[BLB] Implement Camellia, the Seedmiser. (#12751)

* [BLB] Implement Camellia, the Seedmiser.

Also implemented SacrificedPermanentBatchEvent, SacrificeOneOrMorePermanentsTriggeredAbility, and refactored existing Whenever you sacrifice one or more [filter] abilities to use the new SacrificeOneOrMorePermanentsTriggeredAbility (even though as they all only trigger once per turn and technically function correctly with the old SacrificePermanentTriggeredAbility.

* Fix accidental newline.
This commit is contained in:
Grath 2024-08-29 10:35:13 -04:00 committed by GitHub
parent c937856adf
commit 3c419a857f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 244 additions and 12 deletions

View file

@ -1421,7 +1421,9 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
if (player != null) {
game.informPlayers(player.getLogName() + " sacrificed " + this.getLogName() + CardUtil.getSourceLogName(game, source));
}
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.SACRIFICED_PERMANENT, objectId, source, controllerId));
GameEvent sacrificedEvent = GameEvent.getEvent(GameEvent.EventType.SACRIFICED_PERMANENT, objectId, source, controllerId);
game.fireEvent(sacrificedEvent);
game.getState().addSimultaneousSacrificedPermanentToBatch(sacrificedEvent, game);
return true;
}
return false;