Bug Closed · Resolved

fly mechanic cannot be casted from mob, only via player

#3509 opened by Unknown 3 years ago

Unknownreported this bug

Summary

Describe the bug encountered in detail.

Steps to reproduce

when giving a mob a skill such as this, it drops an error in console and fails to fire. the current workaround is to have the mob sudoskill the player to cast the fly mechanic, but this seems unintended.

- fly{duration=100} @PIR{r=10} ~onDamaged

Intended correct behavior

the flight aura should be applied to the targets, regardless of caster.

Server log file

(paste of the error provided by Rumi, confirmed by me using current dev build as of writing) https://pastebin.com/2DCuPpb4

Proposed fixes

looks like perhaps the logic for getting the fly aura to apply is trying to get the caster for io.lumine.mythic.api.adapters.AbstractEntity.asPlayer(), rather than parsing who the targeter is aiming for?

Sign in to join the discussion.