topaz-next / topaz

💎 A server emulator for Final Fantasy XI.
GNU General Public License v3.0
56 stars 80 forks source link

[canary] Summoner error on release #2640

Open Chronos77 opened 3 years ago

Chronos77 commented 3 years ago

Additional Information (Steps to reproduce/Expected behavior) :

We can release without avatar, while normally it should indicate that there is no avatar

To reproduce, you need to summon an avatar, and release this

[15/Feb] [12:11:22] [Error]  luautils::onUseAbility: stack index 2, expected number, received nil: not a numeric type (bad argument into 'bool(short unsigned int, const sol::basic_object<sol::basic_reference<false> >&)')
stack traceback:
        [C]: in function 'delStatusEffect'
        ./scripts/globals/abilities/release.lua:18: in function <./scripts/globals/abilities/release.lua:16>