Browse Source

Pet damage scales with zerg multiplier

lakebane-master
FatBoy-DOTC 7 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 { @@ -318,9 +318,15 @@ public class HealthEffectModifier extends AbstractEffectModifier {
AbstractCharacter ac = (AbstractCharacter) awo;
if (ac.isSit())
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;
}
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;

Loading…
Cancel
Save