Suggestion Closed · Implemented

Mob-Leveling resets health

#1283 opened by Unknown 5 years ago

Unknownreported this suggestion

Summary

Every time a mob levels using the SetLevel{} skill, their HP gets reset to full.

Steps to reproduce

  1. create a new mob in the mobs folder
  2. add the SetLevel{} skill to it, that adds a level to itself ~onTimer:20.
  3. set the health-scaling per level to 0 in the mob options.
  4. save the file and reload MM
  5. spawn the mob
  6. attack the mob
  7. watch it regen its health every second (or level)

Current behavior

Currently I have a mob that increases their level every second, but every time the mob levels, their HP gets reset to full. Even if their HP-scaling per level is set to 0.

Using the Setlevel{} skill

Intended correct behavior

Every level, their HP should remain the same and/or scale along with their max hp (STATIC or SCALE-mode), just like the "set Health" skill.

Server log file

Unable to include. Most probably shouldnt be needed either way

Debug log snippet

Most probably not needed and unable to aquire at the moment.

Proposed fixes

add the MODE option, just like the setMaxHealth{} skill, to the setLevel{} skill or any other way to make their HP for example STATIC or SCALE or make an option to disable/enable health-scaling.

Unknowncommented

added some extra notes as I forgot them apparently.

Unknowncommented
  1. I believe this is working as intended. this would be a feature request.
  2. Store a castervariable of their percent hp, or hp amount, then re-apply it after levelling
  3. Please get a way to provide logs, if this were a bug we would need it.
Sign in to join the discussion.