CommandHelper

CommandHelper

46.5k Downloads

Entity Damage Fires Multiple Times

LadyCailin opened this issue ยท 1 comments

commented

CMDHELPER-2634 - Reported by PseudoKnight on 2013-04-10 01:33:56 UTC

Reproduce by spam left-clicking on an entity.

I found a [old] bukkit issue conversation where a developer explained how to filter the extra events.

https://bukkit.atlassian.net/browse/BUKKIT-147
"I was experiencing what I thought was a number of bugs that would allow an entity to get damaged more often or too quickly than expected and without even getting the damage event info to filter it. However, after evaluating every event even those while NoDamageTicks > (MaxNoDamageTicks / 2), this was able to be resolved for me.

By default, event damage will continue to be sent to the target as rapidly as you click. However the damage received will be reduced to only the difference over and above the new damage vs the original damage that caused the entity's NoDamageTicks to reset to it's MaxNoDamageTicks. Once the NoDamageTicks reaches 1/2 of the MaxNoDamageTicks, it will take full damage again and reset the NoDamageTicks."

commented

Comment by LadyCailin on 2014-03-07 17:20:24 UTC

This is marked as resolved on bukkit, is this still an issue?