From 7eb6deb1e9171e636ef6df6c76502190a234e2b4 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 21 Apr 2024 06:17:06 -0500 Subject: [PATCH] fix cast bug for mob to PC --- src/engine/powers/effectmodifiers/HealthEffectModifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/powers/effectmodifiers/HealthEffectModifier.java b/src/engine/powers/effectmodifiers/HealthEffectModifier.java index e2096a1a..d282dfde 100644 --- a/src/engine/powers/effectmodifiers/HealthEffectModifier.java +++ b/src/engine/powers/effectmodifiers/HealthEffectModifier.java @@ -318,7 +318,7 @@ public class HealthEffectModifier extends AbstractEffectModifier { AbstractCharacter ac = (AbstractCharacter) awo; if (ac.isSit()) damage *= 2.5f; // increase damage if sitting - if(ac.getObjectType().equals(GameObjectType.PlayerCharacter) && source.equals(ac) == false){ + if(source.getObjectType().equals(GameObjectType.PlayerCharacter) && source.equals(ac) == false){ damage *= ((PlayerCharacter)source).ZergMultiplier; } }