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 146
    • Issues 146
    • 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
  • #404

Closed
Open
Created May 16, 2021 by deadfish@deadfish12

NaN Health Set when using sudoskill

Summary

Sometimes the mob's health becomes NaN and players cannot kill it. sudoskill of damage is used when this occurs.

Steps to reproduce

Mobs file https://pastebin.com/KGa0tbqy

Skills file https://pastebin.com/xjrbXcVi

The mob was designed in the way so that players can only deal damage to it when they are not holding items with the specific name. However, if the player is hitting the mob with an axe or without anything, the mob's health becomes NaN and doesn't die.

Current behavior

A video of the bug happening.

20210509_002726_Trim_Trim

It is found out that the problem only happens if the player is not holding anything or is holding an axe. The problem won't occur and the mob dies normally when the player is holding other items, swords, trident or shoot it with arrows. Setting ignoreimmunity=true or false does not affect the issue.

Intended correct behavior

The mob's health should not be NaN and should die even the player is not holding anything or is holding an axe.

Debug log snippet

https://pastebin.com/MhQy6z1p

Edited May 16, 2021 by deadfish
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking