Misc bugfixes
This commit is contained in:
@@ -232,8 +232,8 @@ public class BulletType extends Content implements Cloneable{
|
||||
}
|
||||
|
||||
if(entity instanceof Unit unit){
|
||||
Tmp.v3.set(unit).sub(b.x, b.y).nor().scl(knockback * 80f);
|
||||
if(impact) Tmp.v3.setAngle(b.rotation());
|
||||
Tmp.v3.set(unit).sub(b).nor().scl(knockback * 80f);
|
||||
if(impact) Tmp.v3.setAngle(b.rotation() + (knockback < 0 ? 180f : 0f));
|
||||
unit.impulse(Tmp.v3);
|
||||
unit.apply(status, statusDuration);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user