From 24e417619edb237f140bdc3cc79a4ac110733644 Mon Sep 17 00:00:00 2001 From: Avi Weinstock Date: Mon, 13 Sep 2021 16:56:17 -0400 Subject: [PATCH] Tormented demons now correctly retaliate if attacked while non-aggressive. --- .../core/game/node/entity/npc/bosses/TormentedDemonNPC.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Server/src/main/java/core/game/node/entity/npc/bosses/TormentedDemonNPC.java b/Server/src/main/java/core/game/node/entity/npc/bosses/TormentedDemonNPC.java index c1652870c..c7c32aace 100644 --- a/Server/src/main/java/core/game/node/entity/npc/bosses/TormentedDemonNPC.java +++ b/Server/src/main/java/core/game/node/entity/npc/bosses/TormentedDemonNPC.java @@ -151,6 +151,8 @@ public class TormentedDemonNPC extends AbstractNPC { @Override public void onImpact(final Entity entity, BattleState state) { + // Call the parent class's onImpact handler to ensure that retaliation happens if the TD is non-aggressive. + super.onImpact(entity, state); // "The demon will switch prayers after it receives 31 damage from one attack style." // This is done in onImpact so that it happens after the damage that caused the switch is dealt. CombatStyle damaged = getMostDamagedStyle();