From d4e62c0e96cba1a5d000e213144c1580fd78a3b5 Mon Sep 17 00:00:00 2001 From: Zerken Date: Mon, 4 Sep 2023 05:06:26 +0000 Subject: [PATCH] Fixed a regression causing broken NPC range and magic attacks --- Server/src/main/core/game/node/entity/npc/NPC.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/src/main/core/game/node/entity/npc/NPC.java b/Server/src/main/core/game/node/entity/npc/NPC.java index f3cafc5b6..d58b69042 100644 --- a/Server/src/main/core/game/node/entity/npc/NPC.java +++ b/Server/src/main/core/game/node/entity/npc/NPC.java @@ -232,7 +232,8 @@ public class NPC extends Entity { } behavior.onCreation(this); // FIXME: hack around MovementPulse's constructor getting run while behavior is null when behavior is set between NPC constructor and init. - getProperties().setCombatPulse(new CombatPulse(this)); + // FIXME: Commented out as a fix. most npcs were not being able to attack with range/magic due to setting the combat pulse. + // getProperties().setCombatPulse(new CombatPulse(this)); } @Override