Fixes the damage modifier not working sometimes (#8124)

Co-authored-by: Garen7 <Garen7@users.noreply.github.com>
This commit is contained in:
Garen7
2023-01-07 10:30:49 -06:00
committed by GitHub
parent b57cde7148
commit c20d7f2b4f
6 changed files with 7 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ public class Lightning{
bhit = false;
for(int i = 0; i < length / 2; i++){
hitCreate.create(null, team, x, y, rotation, damage, 1f, 1f, hitter);
hitCreate.create(null, team, x, y, rotation, damage * (hitter == null ? 1f : hitter.damageMultiplier()), 1f, 1f, hitter);
lines.add(new Vec2(x + Mathf.range(3f), y + Mathf.range(3f)));
if(lines.size > 1){