This commit is contained in:
Anuken
2020-11-24 09:00:34 -05:00
parent 2282cb89b1
commit 058b2ddfce
7 changed files with 14 additions and 8 deletions

View File

@@ -61,7 +61,7 @@ public class SapBulletType extends BulletType{
b.data = target;
if(target != null){
float result = Math.min(target.health(), damage);
float result = Math.max(Math.min(target.health(), damage), 0);
if(b.owner instanceof Healthc h){
h.heal(result * sapStrength);