From a8d957bf7dd8315b67a38221f11bf034bc1a6b72 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 10 Jul 2019 09:05:47 -0400 Subject: [PATCH] Update OverdriveProjector.java --- .../world/blocks/defense/OverdriveProjector.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/io/anuke/mindustry/world/blocks/defense/OverdriveProjector.java b/core/src/io/anuke/mindustry/world/blocks/defense/OverdriveProjector.java index ac50305184..956560ddf2 100644 --- a/core/src/io/anuke/mindustry/world/blocks/defense/OverdriveProjector.java +++ b/core/src/io/anuke/mindustry/world/blocks/defense/OverdriveProjector.java @@ -98,8 +98,10 @@ public class OverdriveProjector extends Block{ if(other == null) continue; if(other.getTeamID() == tile.getTeamID() && !healed.contains(other.pos()) && other.entity != null){ - other.entity.timeScaleDuration = Math.max(other.entity.timeScaleDuration, reload + 1f); - other.entity.timeScale = Math.max(other.entity.timeScale, realBoost); + if(other.entity.timeScale <= realBoost){ + other.entity.timeScaleDuration = Math.max(other.entity.timeScaleDuration, reload + 1f); + other.entity.timeScale = Math.max(other.entity.timeScale, realBoost); + } healed.add(other.pos()); } } @@ -160,4 +162,4 @@ public class OverdriveProjector extends Block{ phaseHeat = stream.readFloat(); } } -} \ No newline at end of file +}