|
|
@ -1188,11 +1188,9 @@ public abstract class AbstractCharacter extends AbstractWorldObject { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public final float modifyHealth( |
|
|
|
public final float modifyHealth(float value,final AbstractCharacter attacker,final boolean fromCost) { |
|
|
|
final float value, |
|
|
|
if(attacker.getObjectType().equals(GameObjectType.PlayerCharacter)) |
|
|
|
final AbstractCharacter attacker, |
|
|
|
value *= ((PlayerCharacter)attacker).ZergMultiplier; |
|
|
|
final boolean fromCost) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
@ -1248,9 +1246,11 @@ public abstract class AbstractCharacter extends AbstractWorldObject { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public final float modifyMana( |
|
|
|
public final float modifyMana( |
|
|
|
final float value, |
|
|
|
float value, |
|
|
|
final AbstractCharacter attacker |
|
|
|
final AbstractCharacter attacker |
|
|
|
) { |
|
|
|
) { |
|
|
|
|
|
|
|
if(attacker.getObjectType().equals(GameObjectType.PlayerCharacter)) |
|
|
|
|
|
|
|
value *= ((PlayerCharacter)attacker).ZergMultiplier; |
|
|
|
return this.modifyMana(value, attacker, false); |
|
|
|
return this.modifyMana(value, attacker, false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1287,9 +1287,11 @@ public abstract class AbstractCharacter extends AbstractWorldObject { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
public final float modifyStamina( |
|
|
|
public final float modifyStamina( |
|
|
|
final float value, |
|
|
|
float value, |
|
|
|
final AbstractCharacter attacker |
|
|
|
final AbstractCharacter attacker |
|
|
|
) { |
|
|
|
) { |
|
|
|
|
|
|
|
if(attacker.getObjectType().equals(GameObjectType.PlayerCharacter)) |
|
|
|
|
|
|
|
value *= ((PlayerCharacter)attacker).ZergMultiplier; |
|
|
|
return this.modifyStamina(value, attacker, false); |
|
|
|
return this.modifyStamina(value, attacker, false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|