2020-03-04 18:29:33 +00:00
|
|
|
from typing import *
|
|
|
|
from ..tables import DndBattleUnit
|
2020-03-16 22:21:24 +00:00
|
|
|
from .abstract import DndBattleTargetCommand
|
2020-03-04 18:29:33 +00:00
|
|
|
|
|
|
|
|
2020-03-16 22:21:24 +00:00
|
|
|
class DndextraCommand(DndBattleTargetCommand):
|
2020-03-04 18:29:33 +00:00
|
|
|
name: str = "dndextra"
|
|
|
|
|
2020-03-16 22:21:24 +00:00
|
|
|
description: str = "Change the extras for a target in the current battle."
|
2020-03-04 18:29:33 +00:00
|
|
|
|
2020-03-16 22:21:24 +00:00
|
|
|
syntax: str = "{target} {extra}"
|
2020-03-04 18:29:33 +00:00
|
|
|
|
|
|
|
aliases = ["extra", "dextra"]
|
|
|
|
|
2020-03-16 22:21:24 +00:00
|
|
|
async def _change(self, unit: DndBattleUnit, args: List[str]):
|
|
|
|
unit.extra = " ".join(args)
|