Update OverdriveProjector.java

This commit is contained in:
Anuken 2019-07-10 09:05:47 -04:00 committed by GitHub
parent b6b5343e04
commit a8d957bf7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}
}
}