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
  • #846

Closed
Open
Created Jun 26, 2022 by JpegIsMe@JpegIsMeReporter

Switch-Case skill not working as intended

Summary

Using switch-case condition alongside damage cause isn't working as intended

Steps to reproduce

  1. Set up a mythic mob to test with

  2. Implement code for skill (Pastebin makes the spaces look strange, but trust me the syntax is correct) https://pastebin.com/s76eYCMv

  3. Let the mob get hurt by an explosion, fire, or any of the damage causes listed in the skill

  4. Observe that only the last condition, fire, gets fired regardless of what the damage cause was

Current behavior

Only the "Fire" switch-case gets fired, regardless of what damage was caused to the mob

Intended correct behavior

should only fire if the mob is damaged by the correct damage cause, and if the switch-case condition isn't listed, it shouldn't fire at all.

Server log file

https://pastebin.com/nsR4GwhA

Debug log snippet

Note: Debug Level 4 https://pastebin.com/N7bmnCgY

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking