Update OverdriveProjector.java

This commit is contained in:
Anuken
2019-07-10 09:05:47 -04:00
committed by GitHub
parent b6b5343e04
commit a8d957bf7d

View File

@ -98,8 +98,10 @@ public class OverdriveProjector extends Block{
if(other == null) continue; if(other == null) continue;
if(other.getTeamID() == tile.getTeamID() && !healed.contains(other.pos()) && other.entity != null){ if(other.getTeamID() == tile.getTeamID() && !healed.contains(other.pos()) && other.entity != null){
other.entity.timeScaleDuration = Math.max(other.entity.timeScaleDuration, reload + 1f); if(other.entity.timeScale <= realBoost){
other.entity.timeScale = Math.max(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()); healed.add(other.pos());
} }
} }
@ -160,4 +162,4 @@ public class OverdriveProjector extends Block{
phaseHeat = stream.readFloat(); phaseHeat = stream.readFloat();
} }
} }
} }