Fixed combat movement regression that occurred when fighting large NPCs

This commit is contained in:
Ceikry
2023-08-11 01:30:58 +00:00
committed by Ryan
parent 6a3e91f13c
commit 98a5b95407
5 changed files with 10 additions and 14 deletions
@@ -6,6 +6,7 @@ import core.game.interaction.IntType
class AttackListener : InteractionListener {
override fun defineListeners() {
flagInstant()
on(IntType.NPC, "attack"){ player, npc ->
//Makes sure player uses correct attack styles for lumbridge dummies
if (npc.id == 4474 && player.getSwingHandler(false).type != CombatStyle.MAGIC) {