This commit is contained in:
Anuken 2021-09-12 20:21:55 -04:00
parent f64d078f29
commit 087cd2c55a

View File

@ -95,7 +95,7 @@ public class Wall extends Block{
//deflect bullets if necessary
if(chanceDeflect > 0f){
//slow bullets are not deflected
if(bullet.vel().len() <= 0.1f || !bullet.type.reflectable) return true;
if(bullet.vel.len() <= 0.1f || !bullet.type.reflectable) return true;
//bullet reflection chance depends on bullet damage
if(!Mathf.chance(chanceDeflect / bullet.damage())) return true;
@ -114,9 +114,9 @@ public class Wall extends Block{
bullet.vel.y *= -1;
}
bullet.owner(this);
bullet.team(team);
bullet.time(bullet.time() + 1f);
bullet.owner = this;
bullet.team = team;
bullet.time += 1f;
//disable bullet collision by returning false
return false;