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 134
    • Issues 134
    • 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
  • #1908

Closed
Open
Created May 08, 2025 by IonTech@I0nTech

modifyDamage{mode=ADD} adds the incorrect amount of damage

Found some weird behavior with the modifyDamage mechanic.

For some reason on ADD mode, the damage added is Attack Damage * amount, not just the amount defined.

Example Item used:

the_stick:
  Id: STICK
  Display: The Stick
  Attributes:
    MainHand:
      AttackDamage: 10 
  Skills:
  - skill{sync=true;s=[ 
    - message{m=HIT} 
    - modifyDamage{a=1;action=ADD}
    ]} @self ~onAttack
  
the_stick-control:
  Id: STICK
  Display: The Control Stick
  Attributes:
    MainHand:
      AttackDamage: 10 

The Stick should deal 12 damage (10+1+1), the Control Stick should deal 11 damage. Instead The Stick deals 21 Damage, (10+10*1+1).

Damage instances from skills work as intended, just not ones from the ~onAttack trigger.

Demoed here: https://youtu.be/KOgv2XXslHI

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking