mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-13 19:39:04 +07:00
Bugfixes
This commit is contained in:
parent
db40f154c5
commit
98e6303765
@ -63,6 +63,11 @@ public class RailBulletType extends BulletType{
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean testCollision(Bullet bullet, Building tile){
|
||||
return bullet.team != tile.team;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hitEntity(Bullet b, Hitboxc entity, float initialHealth){
|
||||
handle(b, entity, initialHealth);
|
||||
|
@ -50,6 +50,7 @@ abstract class ShieldComp implements Healthc, Posc{
|
||||
|
||||
float shieldDamage = Math.min(Math.max(shield, 0), amount);
|
||||
shield -= shieldDamage;
|
||||
hitTime = 1f;
|
||||
amount -= shieldDamage;
|
||||
|
||||
if(amount > 0){
|
||||
|
Loading…
Reference in New Issue
Block a user