Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some refactor/cleanup of the switch statements e.g. fallback for teleport spells is no longer needed after changes to animation start function.
PR has fixes for these issues:
SPL_DONTINVEST
allows the player to hold the charged spell until key is released.investedMana
is then no longer accumulated.Gothic 1 exclusive:
castLevel
is inCS_Cast
range SHOOT animation would be started a second time after spell is already sent. To prevent this play animation only if CAST animation exists.CS_Finalize
is now handled likeCS_Emit
except spell is not committed.code=SPL_NEXTLEVEL
changecastLevel
only ifcastLvl<15
instead ofcastLvl<=15
. Otherwise it was possible to jump fromCS_Invest
toCS_Cast
which broke spells like summon demon with a long cast phase.