implement content

This commit is contained in:
Leonwang4234
2020-10-15 17:59:03 -07:00
parent fb0179da95
commit ba77f8e2aa
4 changed files with 33 additions and 1 deletions

View File

@@ -36,7 +36,13 @@ public class Lightning{
random.setSeed(seed);
hit.clear();
BulletType bulletType = hitter != null && !hitter.type.collidesAir ? Bullets.damageLightningGround : Bullets.damageLightning;
BulletType bulletType;
if(hitter != null && hitter.type.lightningHitter != null) {
bulletType = hitter.type.lightningHitter;
} else {
bulletType = hitter != null && !hitter.type.collidesAir ? Bullets.damageLightningGround : Bullets.damageLightning;
}
Seq<Vec2> lines = new Seq<>();
bhit = false;