mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-06 08:57:45 +07:00
fix shield arc ability (#9290)
* fix shield arc ability * Update ShieldArcAbility.java
This commit is contained in:
parent
c3134bfb2f
commit
533c5a8afb
@ -93,7 +93,8 @@ public class ShieldArcAbility extends Ability{
|
||||
paramField = this;
|
||||
paramPos.set(x, y).rotate(unit.rotation - 90f).add(unit);
|
||||
|
||||
Groups.bullet.intersect(unit.x - radius, unit.y - radius, radius * 2f, radius * 2f, shieldConsumer);
|
||||
float reach = radius + width / 2f;
|
||||
Groups.bullet.intersect(paramPos.x - reach, paramPos.y - reach, reach * 2f, reach * 2f, shieldConsumer);
|
||||
}else{
|
||||
widthScale = Mathf.lerpDelta(widthScale, 0f, 0.11f);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user