fix shield arc ability (#9290)
* fix shield arc ability * Update ShieldArcAbility.java
This commit is contained in:
@@ -93,7 +93,8 @@ public class ShieldArcAbility extends Ability{
|
|||||||
paramField = this;
|
paramField = this;
|
||||||
paramPos.set(x, y).rotate(unit.rotation - 90f).add(unit);
|
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{
|
}else{
|
||||||
widthScale = Mathf.lerpDelta(widthScale, 0f, 0.11f);
|
widthScale = Mathf.lerpDelta(widthScale, 0f, 0.11f);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user