the statud effect burning affects tiles

This commit is contained in:
Leonwang4234
2020-08-02 13:31:16 -07:00
parent f97d1eedee
commit d2bc2b07a9
3 changed files with 9 additions and 1 deletions

View File

@@ -267,6 +267,11 @@ public class Damage{
}else{
Units.nearby(rect, cons);
}
if(effect == StatusEffects.burning) {
indexer.eachBlock(null, x, y, radius, other -> other.team != team, other -> {
Damage.createIncend(x, y, 1f, (int) duration/50);
});
}
}
/** Damages all entities and blocks in a radius that are enemies of the team. */