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 136
    • Issues 136
    • 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
  • #1376

Closed
Open
Created Oct 28, 2023 by Ghmmy@GhmmyMaintainer

onDamaged trigger will still trigger if onSwing or onAttack triggers are cancelled

Using

canceldmg:
  Type: PIG
  Skills:
  - message{m="damage received"} @trigger ~onDamaged

cancelhit:
  Id: STICK 
  Skills:
  - skill{s=[
    - cancelevent{}
    - message{m="hit is cancelled"} @self
    ];sync=true} ~onAttack

Both messages will trigger. the hit is cancelled message is intended, but damage received shouldnt trigger as it isnt actually receiving damage. This is annoying to deal with, as players are able to trigger mob skills even though its not actually dealing damage.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking