Browse Source

fix cast bug for mob to PC

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
7eb6deb1e9
  1. 2
      src/engine/powers/effectmodifiers/HealthEffectModifier.java

2
src/engine/powers/effectmodifiers/HealthEffectModifier.java

@ -318,7 +318,7 @@ public class HealthEffectModifier extends AbstractEffectModifier {
AbstractCharacter ac = (AbstractCharacter) awo; AbstractCharacter ac = (AbstractCharacter) awo;
if (ac.isSit()) if (ac.isSit())
damage *= 2.5f; // increase damage if sitting 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; damage *= ((PlayerCharacter)source).ZergMultiplier;
} }
} }

Loading…
Cancel
Save