mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +00:00
18 lines
479 B
Python
18 lines
479 B
Python
from typing import *
|
|
from ..tables import DndBattleUnit
|
|
from .abstract import DndBattleTargetCommand
|
|
|
|
|
|
class DndhealCommand(DndBattleTargetCommand):
|
|
name: str = "dndheal"
|
|
|
|
description: str = "Heal a target in the currently active battle."
|
|
|
|
syntax: str = "{target} {heal}"
|
|
|
|
aliases = ["heal", "dheal"]
|
|
|
|
async def _change(self, unit: DndBattleUnit, args: List[str]):
|
|
health = unit.health
|
|
health.change(int(args[0]))
|
|
unit.health = health
|