Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 141
    • Issues 141
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #165

Closed
Open
Created Nov 03, 2020 by Ghmmy@GhmmyMaintainer

Mob-Leveling resets health

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.

Edited Nov 20, 2020 by Ghmmy
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking