(Should) prevent vela from setting fires to friendly tiles
This commit is contained in:
@@ -161,11 +161,12 @@ public abstract class BulletType extends Content{
|
|||||||
if(status == StatusEffects.burning) {
|
if(status == StatusEffects.burning) {
|
||||||
Fires.create(tile.tile);
|
Fires.create(tile.tile);
|
||||||
}
|
}
|
||||||
hit(b);
|
|
||||||
|
|
||||||
if(healPercent > 0f && tile.team == b.team && !(tile.block instanceof ConstructBlock)){
|
if(healPercent > 0f && tile.team == b.team && !(tile.block instanceof ConstructBlock)){
|
||||||
Fx.healBlockFull.at(tile.x, tile.y, tile.block.size, Pal.heal);
|
Fx.healBlockFull.at(tile.x, tile.y, tile.block.size, Pal.heal);
|
||||||
tile.heal(healPercent / 100f * tile.maxHealth());
|
tile.heal(healPercent / 100f * tile.maxHealth());
|
||||||
|
} else {
|
||||||
|
hit(b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user