Closed glektarssza closed 7 months ago
Under the following conditions, Apotheosis bosses can still attack the player:
This is because these three conditions call setTarget directly without checking canAttack.
setTarget
canAttack
The intended fix is to override setTarget as well to return immediately without setting the target if the disableTargetingPlayers gamerule is set.
disableTargetingPlayers
Under the following conditions, Apotheosis bosses can still attack the player:
This is because these three conditions call
setTarget
directly without checkingcanAttack
.The intended fix is to override
setTarget
as well to return immediately without setting the target if thedisableTargetingPlayers
gamerule is set.