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 145
    • Issues 145
    • 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
  • #1540

Closed
Open
Created Mar 13, 2024 by Timmie@timmienl

Projectile BulletType ARROW triggers a double damage onHit

Summary

Hi, thanks for reading my issue. When I use a projectile with the bulletType=ARROW and it hits a target it will apply the onHit Damage, BUT also apply the damage from the arrow that is inside of the projectile.

It happens when you do prevent immunity on the damage

Steps to reproduce

Huntsman_basic_ATTACK:
  Skills:  
  - sound{s=entity.arrow.shoot} @self    
  - projectile{bulletType=ARROW;v=30;i=1;hR=0.7;vR=0.7;drawHitbox=false;onTick=Huntsman_basic_ATTACK-oT;onHit=Huntsman_basic_ATTACK-oH;hnp=true;g=0.2;hp=true;syo=1.5;byo=0.2} @TargetLocation      

Huntsman_basic_ATTACK-oT:
  Skills:
  - effect:particles{p=crit;amount=1;speed=0;hS=0;vS=0} @origin  

Huntsman_basic_ATTACK-oH:
  Skills:
  - sound{s=entity.arrow.hit} @origin     
  - damage{a=5;pi=true}

Current behavior

When it hits the target it triggers 2 damage 1 of them is UNKNOWN (because its the ARROW ENTITY inside the projectile)

Intended correct behavior

When the projectile hits it should remove the projectile and only trigger what is inside of the onHit instead of also letting the ARROW do damage.

Server log file

https://mclo.gs/cz4YBWH

Debug log snippet

[14:51:31 INFO]: [MythicMobs] |----- ? Performing Health Check [14:51:31 INFO]: [MythicMobs] |----- + SkillMechanic usable! [14:51:31 INFO]: [MythicMobs] |----- Executing SkillMechanic hologram with power 1 (line: null) [14:51:31 INFO]: [MythicMobs] |------- : LocationTargeter found 1 targets [14:51:31 INFO]: [MythicMobs] +--- + Applying location target filters [14:51:31 INFO]: [MythicMobs] |----- Returning 1 targets [14:51:31 INFO]: [MythicMobs] |------- : SkillMechanic accepts multiple types... [14:51:31 INFO]: [MythicMobs] |----- Mechanic is ITargetedEntitySkill [14:51:31 INFO]: [MythicMobs] |----- Mechanic is ITargetedLocationSkill [14:51:31 INFO]: [MythicMobs] |------- : Executing SkillMechanic as LOCATION skill [14:51:31 INFO]: [MythicMobs] |----- ---------- [END] ---------- [14:51:31 INFO]: [MythicMobs] ~----------- + DamageMechanic fired for 5 with 1 power [14:51:31 INFO]: [MythicMobs] |----- DamageModifierStat for type PROJECTILE is 1, setting damage modifier to 1 [14:51:31 INFO]: [MythicMobs] +--- Running Mechanics for ActiveMob DUMMY (uuid: 89c6963b-3004-47a8-90e2-d74bfae5fa23) [14:51:31 INFO]: [MythicMobs] |----- ? Checking SkillTrigger SkillTrigger[name=DAMAGED, metadataClass=class io.lumine.mythic.core.skills.triggers.meta.EmptyMetadata, aliases=[HURT]] == SkillTrigger[name=DAMAGED, metadataClass=class io.lumine.mythic.core.skills.triggers.meta.EmptyMetadata, aliases=[HURT]] [14:51:31 INFO]: [MythicMobs] |----- ? Performing Health Check [14:51:31 INFO]: [MythicMobs] |----- + SkillMechanic usable! [14:51:31 INFO]: [MythicMobs] |----- ? Checking SkillTrigger SkillTrigger[name=DAMAGED, metadataClass=class io.lumine.mythic.core.skills.triggers.meta.EmptyMetadata, aliases=[HURT]] == SkillTrigger[name=DAMAGED, metadataClass=class io.lumine.mythic.core.skills.triggers.meta.EmptyMetadata, aliases=[HURT]] [14:51:31 INFO]: [MythicMobs] |----- ? Performing Health Check [14:51:31 INFO]: [MythicMobs] |----- + SkillMechanic usable! [14:51:31 INFO]: [MythicMobs] |----- Executing SkillMechanic hologram with power 1 (line: null) [14:51:31 INFO]: [MythicMobs] |------- : LocationTargeter found 1 targets [14:51:31 INFO]: [MythicMobs] +--- + Applying location target filters [14:51:31 INFO]: [MythicMobs] |----- Returning 1 targets [14:51:31 INFO]: [MythicMobs] |------- : SkillMechanic accepts multiple types... [14:51:31 INFO]: [MythicMobs] |----- Mechanic is ITargetedEntitySkill [14:51:31 INFO]: [MythicMobs] |----- Mechanic is ITargetedLocationSkill [14:51:31 INFO]: [MythicMobs] |------- : Executing SkillMechanic as LOCATION skill [14:51:31 INFO]: [MythicMobs] |----- ---------- [END] ---------- [14:51:31 INFO]: [MythicMobs] |----- Executing SkillMechanic setname with power 1 (line: null) [14:51:31 INFO]: [MythicMobs] |------- : EntityTargeter found 1 targets [14:51:31 INFO]: [MythicMobs] +--- + Applying entity target filters [14:51:31 INFO]: [MythicMobs] |----- Returning 1 targets [14:51:31 INFO]: [MythicMobs] |----- Mechanic is ITargetedEntitySkill [14:51:31 INFO]: [MythicMobs] |------- : SkillMechanic io.lumine.mythic.core.skills.mechanics.SetNameMechanic is an ENTITY skill. Executing... [14:51:31 INFO]: [MythicMobs] |----- Executing SkillMechanic setname with power 1 (line: null) [14:51:31 INFO]: [MythicMobs] |------- : EntityTargeter found 1 targets [14:51:31 INFO]: [MythicMobs] +--- + Applying entity target filters [14:51:31 INFO]: [MythicMobs] |----- Returning 1 targets [14:51:31 INFO]: [MythicMobs] |----- Mechanic is ITargetedEntitySkill [14:51:31 INFO]: [MythicMobs] |------- : SkillMechanic io.lumine.mythic.core.skills.mechanics.SetNameMechanic is an ENTITY skill. Executing...

Proposed fixes

Describe what you think the issue or any potential fixes may be.

Edited Mar 13, 2024 by Timmie
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking