Skip to content

Commit

Permalink
entity/projectile.go: Fix projectiles always doing base damage
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Jan 30, 2025
1 parent 34ad7db commit d529467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/entity/projectile.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (lt *ProjectileBehaviour) hitEntity(l Living, e *Ent, vel mgl64.Vec3) {
if lt.conf.Critical {
dmg += rand.Float64() * dmg / 2
}
if _, vulnerable := l.Hurt(lt.conf.Damage, src); vulnerable {
if _, vulnerable := l.Hurt(dmg, src); vulnerable {
l.KnockBack(l.Position().Sub(vel), 0.45+lt.conf.KnockBackForceAddend, 0.3608+lt.conf.KnockBackHeightAddend)

for _, eff := range lt.conf.Potion.Effects() {
Expand Down

0 comments on commit d529467

Please sign in to comment.