Open Govdim opened 4 years ago
This won't be an easy problem to fix on 3.x due to the way the API is designed.
related: #2922
I'm of two minds whether this is actually a bug or not. Knockback is technically not related to damage at all, just the collision, and as such it shouldn't actually be managed by EntityDamageEvent
anyway.
Sadly there's no way around this since the ProjectileHitEntityEvent isn't cancellable.
Weapon enchantments affect entities when the EntityDamageByEntityEvent is cancelled
Example: I play the BedWars minigame, and I have a bow with the "PUNCH" enchantment. I shoot at my teammate and the damage does not pass, but the player knockback.
PocketMine-MP: 3.12.1 PHP: 7.2 Server OS: Ubuntu 18.04 Game version: PE/Win10