refactor: simpler processAction syntax (#12458)

* game.processAction() instead of game.getState().processAction(game)

* add simpler method name and docs

* find/replace to new method

* remove old method

* deprecate applyEffects
This commit is contained in:
xenohedron 2024-06-11 22:55:43 -04:00 committed by GitHub
parent e2b1d980b6
commit d61de05eb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
163 changed files with 218 additions and 217 deletions

View file

@ -69,7 +69,7 @@ class TaintedPactEffect extends OneShotEffect {
if (card != null) {
// the card move is sequential, not all at once.
controller.moveCards(card, Zone.EXILED, source, game);
game.getState().processAction(game); // Laelia, the Blade Reforged
game.processAction(); // Laelia, the Blade Reforged
// Checks if there was already exiled a card with the same name
if (names.contains(card.getName())) {
break;