Fixed potion mana amount heals, remove wrong parameter from doTargetCombatMana on potions.lua #523
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.
Description
was being passed an extra parameter in the "doTargetCombatMana" function, this function randomizes the amount of mana a potion heals. With this parameter, the minimum "6" was always passed, which is the value of the constant "COMBAT_MANADRAIN", thus making an "ultimate mana potion", for example, heal 80, 100, 130... however, it should cure between 425 and 575.
here the function that is called and where the parameter is used
canary/src/lua/functions/core/game/global_functions.cpp
Line 391 in 0e43691
See on Line 413. The minimum and maximum parameters are in order 3 and 4.
canary/src/lua/functions/core/game/global_functions.cpp
Line 413 in 0e43691
and the effect type is already applied on line 412.
canary/src/lua/functions/core/game/global_functions.cpp
Line 412 in 0e43691
Behaviour
Actual
an "ultimate mana potion", for example, heal 80, 100, 130...
Expected
an "ultimate mana potion", for example, heal between 425 - 575
Type of change
How Has This Been Tested
Tests were done in-game
Checklist