1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
royalnet/rpgpack/commands/dndstatus.py

16 lines
438 B
Python

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