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 140
    • Issues 140
    • 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
  • #861

Closed
Open
Created Jul 14, 2022 by jakov_thedestroyer_9000@malicomrade

Arrow Bounce Back

Summary

OverchargeArrow: Skills:

  • shoot{type=ARROW;velocity=1;pickup=false;damage=50;pl=5;md=10;bounce=false} @forward{f=20}
  • sound{s=entity.arrow.shoot} @self

bounce set to false, bounces off immune mobs or players, damages caster unintentionally

Steps to reproduce

skill is short enough to paste here, use it on a player in worldguard no pvp area or invincible mob

Current behavior

arrow hits the caster back for hitting an invincible mob or a player in the way and kills the caster because of how little hp players have compared to their damage output and how much hp mobs have compared to their little damage output (not the best design choice, but I digress)

Intended correct behavior

arrow gets removed when hitting a player or an immune mob, i tried using onHit and onEnd to remove @self, but it didnt work

Server log file

mythicmobs version 5.1.0, mm premium active, dev build 32f6c0fe, im on paper 1.19

Debug log snippet

there is no debug output/error

Proposed fixes

no idea

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking