Projectile Damage not counting towards Fancy Drop Method
Summary
When testing out FANCY drop method, I've noticed that projectile damage is not counting towards health taken from the mob and instead only melee damage is counting. I'm trying to test out an enderdragon type boss, however with a bow being the primary weapon, players are unable to obtain a higher score on the leaderboard if they don't use a bow.
Steps to reproduce
Use DropMethod: Fancy and kill the mob using a bow.
Current behavior
The projectile in use (bow/arrow) does not count towards the score of the of the leaderboard
Intended correct behavior
Projectiles (bow/arrow) will add to the leaderboard scoreboard that is put in chat after the boss dies. Make it count (like melee).
Server log file
Debug log snippet
There is not error output from doing this.
Proposed fixes
Allow for projectile damage to count towards scoreboard damage like melee does.
The following is a pastebin of the yml file I am using. In this file I modified the DamagedZombie
to add a perplayer/client side fancy drop. Whenever you kill the mob with a projectile (only) nothing happens on death. Whenever you punch, then kill with a projectile, only the punch is counted towards the death. If you kill the boss with only a melee, the melee always works.
https://pastebin.com/uSkdh57W