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 147
    • Issues 147
    • 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
  • #740

Closed
Open
Created Mar 13, 2022 by Nailm@Akiranya

Setting `Damage` to 0 stills deals damage

Summary

I have a mob set to deal 0 damage but instead of it dealing 0 damage it just deals its base damage.

Steps to reproduce

Simply define a mob like this:

test_zombie:
  Type: ZOMBIE
  Display: '&2Test zombie'
  Health: 10
  Damage: 0
  Skills:
  - message{m="damage = <caster.damage> target health = <target.thp>"} @trigger ~onAttack

Spawn the mob, and let the mob attack you.

Then you can see the mob still deals damage.

Current behavior

If setting the Damage option to 0, the mob still deals damage.

Intended correct behavior

The mob should not be able to deal damage if setting Damage to 0

Server log file

https://pastebin.com/fzNCstgQ

Debug log snippet

There is no erros on the console. The reproduce steps should be enough to investigate this issue.

Proposed fixes

I have no idea sorry.

Edited Mar 13, 2022 by Nailm
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking