fix
This commit is contained in:
@@ -192,7 +192,7 @@ public class BlockIndexer{
|
|||||||
|
|
||||||
if(other == null) continue;
|
if(other == null) continue;
|
||||||
|
|
||||||
if(other.team == team && pred.get(other) && intSet.add(other.pos())){
|
if((team == null || other.team == team) && pred.get(other) && intSet.add(other.pos())){
|
||||||
cons.get(other);
|
cons.get(other);
|
||||||
any = true;
|
any = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -288,11 +288,6 @@ public class Damage{
|
|||||||
}else{
|
}else{
|
||||||
Units.nearby(rect, cons);
|
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. */
|
/** Damages all entities and blocks in a radius that are enemies of the team. */
|
||||||
|
|||||||
@@ -189,6 +189,12 @@ public abstract class BulletType extends Content{
|
|||||||
if(status != StatusEffects.none){
|
if(status != StatusEffects.none){
|
||||||
Damage.status(b.team, x, y, splashDamageRadius, status, statusDuration, collidesAir, collidesGround);
|
Damage.status(b.team, x, y, splashDamageRadius, status, statusDuration, collidesAir, collidesGround);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(effect == StatusEffects.burning) {
|
||||||
|
indexer.eachBlock(null, x, y, splashDamageRadius, other -> other.team != team, other -> {
|
||||||
|
Damage.createIncend(x, y, damage/10f, (int) damage/10);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i = 0; i < lightning; i++){
|
for(int i = 0; i < lightning; i++){
|
||||||
|
|||||||
Reference in New Issue
Block a user