mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-13 17:27:35 +07:00
Update OverdriveProjector.java
This commit is contained in:
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user