v2.1.4: fixed noisemakers alerting if they are moved as they trigger

This commit is contained in:
Evan Debenham
2023-06-30 12:22:22 -04:00
parent feb9d8df24
commit 9bf8c4b078

View File

@@ -47,13 +47,6 @@ public class Noisemaker extends Bomb {
Buff.affect(Dungeon.hero, Trigger.class).set(cell);
fuse = null;
CellEmitter.center( cell ).start( Speck.factory( Speck.SCREAM ), 0.3f, 3 );
Sample.INSTANCE.play( Assets.Sounds.ALERT );
for (Mob mob : Dungeon.level.mobs.toArray( new Mob[0] )) {
mob.beckon( cell );
}
}
@Override
@@ -92,7 +85,7 @@ public class Noisemaker extends Bomb {
public void set(int cell){
floor = Dungeon.depth;
this.cell = cell;
left = 6;
left = 0;
}
@Override