Bug Open

Immunitytable issue

#10103 opened by Caviik 1 day ago

Caviikreported this bug

I have MythicMobs skills assigned to the left-click attack of my weapons. The weapons cancel the vanilla melee hit when attacking (disable-melee-attacks in the MMOItems item config) and cast a MythicMobs skill instead, which is supposed to deal the damage. This way, vanilla attacks are not used on my server, and all damage is dealt through MythicMobs skills. The problem is that when I enable immunitytable in the MythicMobs mob config, the mob seems to still register the regular weapon hit, even though that attack has been cancelled. As a result, there is not enough time between the cancelled hit and the actual damage being dealt by the skill. Because both hits occur within less than 10 ticks of each other, the damage from the skill is not applied. The mob should only register a hit when it actually takes damage, not when it is hit by an attack that has been cancelled. I tested this by looking in a different direction to ensure that the mob could not be hit by a vanilla melee attack and could only be hit by the MythicMobs skill. In that case, the damage was applied correctly.

Sign in to join the discussion.