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 DndstatusCommand(DndBattleTargetCommand):
|
2020-03-04 18:29:33 +00:00
|
|
|
name: str = "dndstatus"
|
|
|
|
|
2020-03-16 22:21:24 +00:00
|
|
|
description: str = "Change the target for a unit in the current battle."
|
2020-03-04 18:29:33 +00:00
|
|
|
|
2020-03-16 22:21:24 +00:00
|
|
|
syntax: str = "{target} {status}"
|
2020-03-04 18:29:33 +00:00
|
|
|
|
|
|
|
aliases = ["status", "dstatus"]
|
|
|
|
|
2020-03-16 22:21:24 +00:00
|
|
|
async def _change(self, unit: DndBattleUnit, args: List[str]):
|
|
|
|
unit.status = " ".join(args)
|