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 132
    • Issues 132
    • 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
  • #977

Closed
Open
Created Nov 05, 2022 by LcorpOfficial@LcorpOfficial🔨Reporter

fly mechanic cannot be casted from mob, only via player

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?

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking