summaryrefslogtreecommitdiff
path: root/server/lib/core/commands/amd_remove_imbue_command.dart
blob: bb7219c75c970a26a3818e34cd2361b011a13060 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import '../state/game_state.dart';
import 'command_l10n.dart';

class AMDRemoveImbueCommand extends Command {
  final GameState _gameState;

  AMDRemoveImbueCommand({required GameState gameState})
    : _gameState = gameState;

  @override
  void execute() {
    final ModifierDeck deck = _gameState.modifierDeck;
    deck.resetImbue(stateAccess);
  }

  @override
  String describe() {
    return commandL10n.cmdRemoveImbueMonsterDeck;
  }
}