Fixed controller hit not registering splash damage

This commit is contained in:
Anuken
2022-09-26 19:17:18 -04:00
parent 159f335f64
commit b993f150fb
2 changed files with 2 additions and 1 deletions

View File

@@ -181,7 +181,7 @@ public class CommandAI extends AIController{
public void hit(Bullet bullet){
if(unit.team.isAI() && bullet.owner instanceof Teamc teamc && teamc.team() != unit.team && attackTarget == null &&
//can only counter-attack every few seconds to prevent rapidly changing targets
!(teamc instanceof Unit u && !u.checkTarget(unit.type.targetAir, unit.type.targetGround)) && timer.get(timerTarget4, 60f * 12f)){
!(teamc instanceof Unit u && !u.checkTarget(unit.type.targetAir, unit.type.targetGround)) && timer.get(timerTarget4, 60f * 10f)){
commandTarget(teamc, true);
}
}