Browse Source

zerg mechanic work

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
ba3fd7215b
  1. 4
      src/engine/powers/effectmodifiers/HealthEffectModifier.java
  2. 4
      src/engine/powers/effectmodifiers/ManaEffectModifier.java
  3. 4
      src/engine/powers/effectmodifiers/StaminaEffectModifier.java

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

@ -176,8 +176,8 @@ public class HealthEffectModifier extends AbstractEffectModifier { @@ -176,8 +176,8 @@ public class HealthEffectModifier extends AbstractEffectModifier {
if (!ac.isAlive())
return;
if(awo.getObjectType().equals(GameObjectType.PlayerCharacter)){
modAmount *= ((PlayerCharacter)ac).ZergMultiplier;
if(source.getObjectType().equals(GameObjectType.PlayerCharacter)){
modAmount *= ((PlayerCharacter)source).ZergMultiplier;
}
int powerID = 0, effectID = 0;

4
src/engine/powers/effectmodifiers/ManaEffectModifier.java

@ -157,8 +157,8 @@ public class ManaEffectModifier extends AbstractEffectModifier { @@ -157,8 +157,8 @@ public class ManaEffectModifier extends AbstractEffectModifier {
skipImmune = true;
}
}
if(awo.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)){
modAmount *= ((PlayerCharacter)ac).ZergMultiplier;
if(source.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)){
modAmount *= ((PlayerCharacter)source).ZergMultiplier;
}
PlayerBonuses bonus = ac.getBonuses();
if (!skipImmune && bonus.getFloat(ModType.BlackMantle, SourceType.Heal) >= trains) {

4
src/engine/powers/effectmodifiers/StaminaEffectModifier.java

@ -153,8 +153,8 @@ public class StaminaEffectModifier extends AbstractEffectModifier { @@ -153,8 +153,8 @@ public class StaminaEffectModifier extends AbstractEffectModifier {
skipImmune = true;
}
}
if(awo.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)){
modAmount *= ((PlayerCharacter)ac).ZergMultiplier;
if(source.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)){
modAmount *= ((PlayerCharacter)source).ZergMultiplier;
}
PlayerBonuses bonus = ac.getBonuses();
if (!skipImmune && bonus.getFloat(ModType.BlackMantle, SourceType.Heal) >= trains) {

Loading…
Cancel
Save