We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Player gains mana declared by potion script https://imgur.com/E7WcWJp
Player gains mana declared by potion script + addtional mana and health based on mana and life leech bonus values https://imgur.com/gFSDXoC
Possible solution is given by and Otland user here: https://otland.net/threads/leech-bug-again-using-mana-potion-returns-health-and-additional-mana.285511/
So changing if (!damage.leeched && damage.primary.type != COMBAT_HEALING && casterPlayer && damage.origin != ORIGIN_CONDITION) { to if (!damage.leeched && damage.primary.type != COMBAT_HEALING && casterPlayer && target != caster && damage.origin != ORIGIN_CONDITION) {
if (!damage.leeched && damage.primary.type != COMBAT_HEALING && casterPlayer && damage.origin != ORIGIN_CONDITION) {
if (!damage.leeched && damage.primary.type != COMBAT_HEALING && casterPlayer && target != caster && damage.origin != ORIGIN_CONDITION) {
It helps cause I have tested this, however someone experienced might look at this. Hopefully it solves the problem without creating a new one.
The text was updated successfully, but these errors were encountered:
I think your solution is correct, we simply have to verify if the target is not yourself.
Sorry, something went wrong.
No branches or pull requests
Before creating an issue, please ensure:
support matter (use https://otland.net/forums/support.16/ for support)
Steps to reproduce (include any configuration/script required to reproduce)
Expected behaviour
Player gains mana declared by potion script
https://imgur.com/E7WcWJp
Actual behaviour
Player gains mana declared by potion script + addtional mana and health based on mana and life leech bonus values
https://imgur.com/gFSDXoC
Possible solution is given by and Otland user here:
https://otland.net/threads/leech-bug-again-using-mana-potion-returns-health-and-additional-mana.285511/
So changing
if (!damage.leeched && damage.primary.type != COMBAT_HEALING && casterPlayer && damage.origin != ORIGIN_CONDITION) {
to
if (!damage.leeched && damage.primary.type != COMBAT_HEALING && casterPlayer && target != caster && damage.origin != ORIGIN_CONDITION) {
It helps cause I have tested this, however someone experienced might look at this. Hopefully it solves the problem without creating a new one.
The text was updated successfully, but these errors were encountered: