v0.9.2: corrected necromancer VFX/SFX playing outside of hero FOV
This commit is contained in:
parent
d567c7a283
commit
58ce8c5275
|
@ -252,8 +252,10 @@ public class Necromancer extends Mob {
|
||||||
mySkeleton.pos = summoningPos;
|
mySkeleton.pos = summoningPos;
|
||||||
GameScene.add( mySkeleton );
|
GameScene.add( mySkeleton );
|
||||||
Dungeon.level.occupyCell( mySkeleton );
|
Dungeon.level.occupyCell( mySkeleton );
|
||||||
|
if (Dungeon.level.heroFOV[summoningPos]) {
|
||||||
Sample.INSTANCE.play(Assets.Sounds.BONES);
|
Sample.INSTANCE.play(Assets.Sounds.BONES);
|
||||||
summoningEmitter.burst( Speck.factory( Speck.RATTLE ), 5 );
|
summoningEmitter.burst(Speck.factory(Speck.RATTLE), 5);
|
||||||
|
}
|
||||||
sprite.idle();
|
sprite.idle();
|
||||||
|
|
||||||
if (buff(Corruption.class) != null){
|
if (buff(Corruption.class) != null){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user