Project-Poseidon
Project-Poseidon copied to clipboard
Misleading behavior of `EntityDamageByEntityEvent`
One would expect EntityDamageByEntityEvent to fire when an entity inflicts damage on another entity.
However, I've found out that EntityDamageByEntityEvent is fired everytime a player left-clicks an entity, regardless if the hit would not be effective due to invincibility frames. The damage field in EntityDamageByEntityEvent also does not represent the actual damage the entity took, but rather the weapon damage of the attacking entity.