v0.9.2b: fixed summoning bones vfx persisting in various cases
This commit is contained in:
parent
96e9d2fe0b
commit
e3e3757dbc
|
@ -72,7 +72,7 @@ public class Necromancer extends Mob {
|
|||
protected boolean act() {
|
||||
if (summoning && state != HUNTING){
|
||||
summoning = false;
|
||||
updateSpriteState();
|
||||
if (sprite instanceof NecromancerSprite) ((NecromancerSprite) sprite).cancelSummoning();
|
||||
}
|
||||
return super.act();
|
||||
}
|
||||
|
|
|
@ -94,6 +94,12 @@ public class NecromancerSprite extends MobSprite {
|
|||
}
|
||||
}
|
||||
|
||||
public void cancelSummoning(){
|
||||
if (summoningBones != null){
|
||||
summoningBones.on = false;
|
||||
}
|
||||
}
|
||||
|
||||
public void finishSummoning(){
|
||||
if (summoningBones.visible) {
|
||||
Sample.INSTANCE.play(Assets.Sounds.BONES);
|
||||
|
|
Loading…
Reference in New Issue
Block a user