Open
Description
rustrogueliketutorial/book/src/chapter_66.md
Lines 453 to 465 in 33872fe
There is a missing return
statement after the check on the mana pool.
Currently, if the caster lacks the mana for a spell, the pool won't be updated but the spell will still be cast.
For the player, this won't happen because the spell will be cast from the targeting menu, which has the proper check against this, but a direct call to spell_trigger
could lead to an error.
(If the check is always supposed to always have been done prior to the call, then let's simply remove it here.)
Metadata
Metadata
Assignees
Labels
No labels