Update core/src/mindustry/entities/bullet/BulletType.java

Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
genNAowl 2020-10-05 13:10:52 -07:00 committed by GitHub
parent 68e67ae0f2
commit 7722d697c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,7 @@ public abstract class BulletType extends Content{
Damage.status(b.team, x, y, splashDamageRadius, status, statusDuration, collidesAir, collidesGround);
}
if(healPercent >= 0f) {
if(healPercent > 0f) {
indexer.eachBlock(b.team, x, y, splashDamageRadius, other -> other.damaged(), other -> {
Fx.healBlockFull.at(other.x, other.y, other.block.size, Pal.heal);
other.heal(healPercent / 100f * other.maxHealth());