Skip to content

function unreadySpell

This function will cause player to unready active spell. It works almost the same as removeWeapon, but also stops hero if he's moving before hiding the active spell.
Original: unreadySpell

Declaration

async def unreadySpell(id : int)

Parameters

int id: the player id.

Source code in src/pyg2o/functions/player.py
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
async def unreadySpell(id : int):
    """
    This function will cause player to unready active spell. It works almost the same as [removeWeapon](removeWeapon.md), but also stops hero if he's moving before hiding the active spell.
    Original: [unreadySpell](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/unreadySpell/)

    ## Declaration
    ```python
    async def unreadySpell(id : int)
    ```
    ## Parameters
    `int` **id**: the player id.
    """
    data = f'return {get_call_repr()}'

    server = await PythonWebsocketServer.get_server()
    result = await server.make_request(data)
    return result