Bug Closed · Resolved

Switch-Case skill not working as intended

#3190 opened by Unknown 4 years ago

Unknownreported this bug

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

Unknowncommented

Have you tried other conditions?

Unknowncommented

Quickly tried it with the example code on the wiki and switched the first mob to a zoglin, and it seems to recognize the Zoglin but not the player. Do note that this time I did @trigger instead of @self, but @self should work with the damagecause condition [Legacy attachment omitted]

Sign in to join the discussion.