Browse Source

Pet damage scales with zerg multiplier

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
882ed17b3a
  1. 8
      src/engine/powers/effectmodifiers/HealthEffectModifier.java

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

@ -318,9 +318,15 @@ 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(source.getObjectType().equals(GameObjectType.PlayerCharacter) && source.equals(ac) == false){ if(source.getObjectType().equals(GameObjectType.PlayerCharacter)){
damage *= ((PlayerCharacter)source).ZergMultiplier; damage *= ((PlayerCharacter)source).ZergMultiplier;
} }
if(source.getObjectType().equals(GameObjectType.Mob) && ((Mob)source).isPet()){
AbstractCharacter owner = ((Mob)source).guardCaptain;
if(owner.getObjectType().equals(GameObjectType.PlayerCharacter)){
damage *= ((PlayerCharacter)owner).ZergMultiplier;
}
}
} }
return damage; return damage;

Loading…
Cancel
Save