Bug Closed · Resolved

shoot Bug

#1360 opened by Unknown 5 years ago

Unknownreported this bug

Summary

Describe the bug encountered in detail.

shoot Bug shoot{type=ARROW;velocity=5;damage=10} damage=6.. Steps to reproduce

Provide a full set of steps used to reproduce the bug, including links to SEPARATE Pastebin pastes for each relevant configuration file.

Current behavior

Describe what happens currently, while the bug is affecting your server.

Intended correct behavior

damage=10

Describe what you think should happen instead of the bug.

Server log file https://pastebin.com/BUtg0BFE Provide a link to a Pastebin paste with a copy of your server's latest.log file from startup to "Done!" AND includes a player connecting.

Debug log snippet https://pastebin.com/QZEiwZAK Provide a link to a Pastebin paste with an excerpt of your latest.log file that includes debug output where you trigger the bugged behavior.

Proposed fixes

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

Unknowncommented

Does the target you are shooting have armor? I am not positive but the damage might be detected and reduced by armor.

You might want to try attaching a meta-skill onHit to deal damage that ignores armor using the damage mechanic with ;ia=true and just set the above shoot skill damage to 0.

Unknowncommented

Hey, I had the same issue. Mobs with bows are very tricky and seem to love to inflict the default damage and not the damage you tell them to. I found one method which works.

https://pastebin.com/QmNvjEEZ

It's a bit convoluted, you can probably remove the tick part if you want, but what this does is it enhances the mobs next arrow fired (so it looks natural and arrows aren't just flying out of its body), when that arrow is launched and hits its target, it inflicts basedamage m=1, which if you don't know, is a way of saying it's inflicting 1x the damage the mob has in its actual Mobs .yml file, so if your mob has 20 Damage, this arrow will inflict 20 Damage.

I recommend the basedamage m=1 method because it means you can use this skill on any mob with a bow and it'll inflict appropriate damage because it goes by the Damage you have on the mob itself. Very convenient!

Of course, change it how you see fit, but this is how I had to do the work-around. Kind of annoying, but it works.

Sign in to join the discussion.