1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00
royalnet/rpgpack/commands/dndstatus.py

17 lines
438 B
Python
Raw Normal View History

2020-03-04 18:29:33 +00:00
from typing import *
from ..tables import DndBattleUnit
from .abstract import DndBattleTargetCommand
2020-03-04 18:29:33 +00:00
class DndstatusCommand(DndBattleTargetCommand):
2020-03-04 18:29:33 +00:00
name: str = "dndstatus"
description: str = "Change the target for a unit in the current battle."
2020-03-04 18:29:33 +00:00
syntax: str = "{target} {status}"
2020-03-04 18:29:33 +00:00
aliases = ["status", "dstatus"]
async def _change(self, unit: DndBattleUnit, args: List[str]):
unit.status = " ".join(args)