mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-02 21:11:57 +00:00
* Teleport scroll charges cannot be bypassed via clicking the action button (#73653) ## About The Pull Request Teleport scrolls would only deplete a charge if used in hand, however their implementation actually granted you the spell as an item action which you could use by hitting the action button, This would not deplete a charge, and had no cooldown whatsoever. The action button is convenient and should stay, but I modified the code so that instead of depleting a charge when clicked it depletes a charge when the spell contained by the item successfully casts. I also changed the order of operations slightly in `spell/after_cast` because using the signal to delete the scroll would also delete the spell (sensibly, it should clean up after itself) before the last cast could make smoke, which was sad. ## Why It's Good For The Game On live the teleport scroll gives all wizards _and_ apprentices the teleport spell with absolutely no cooldown and infinite usage, which is probably not intended. ## Changelog 🆑 fix: Using a teleport scroll will deplete a charge regardless of whether used in-hand or by pressing the action button. /🆑 * Teleport scroll charges cannot be bypassed via clicking the action button --------- Co-authored-by: Jacquerel <hnevard@gmail.com>
2.0 KiB
2.0 KiB