Bugfixes
This commit is contained in:
@@ -63,6 +63,11 @@ public class RailBulletType extends BulletType{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean testCollision(Bullet bullet, Building tile){
|
||||||
|
return bullet.team != tile.team;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void hitEntity(Bullet b, Hitboxc entity, float initialHealth){
|
public void hitEntity(Bullet b, Hitboxc entity, float initialHealth){
|
||||||
handle(b, entity, initialHealth);
|
handle(b, entity, initialHealth);
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ abstract class ShieldComp implements Healthc, Posc{
|
|||||||
|
|
||||||
float shieldDamage = Math.min(Math.max(shield, 0), amount);
|
float shieldDamage = Math.min(Math.max(shield, 0), amount);
|
||||||
shield -= shieldDamage;
|
shield -= shieldDamage;
|
||||||
|
hitTime = 1f;
|
||||||
amount -= shieldDamage;
|
amount -= shieldDamage;
|
||||||
|
|
||||||
if(amount > 0){
|
if(amount > 0){
|
||||||
|
|||||||
Reference in New Issue
Block a user