From 3a13f59ebd95b7f69354204f34db87946a012dbb Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 8 May 2021 20:45:53 -0400 Subject: [PATCH] v0.9.3: fixed ethereal chains playing sfx when they fail to throw --- .../items/artifacts/EtherealChains.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/EtherealChains.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/EtherealChains.java index ef7dc40ed..2f7896e76 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/EtherealChains.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/EtherealChains.java @@ -125,8 +125,6 @@ public class EtherealChains extends Artifact { } else { chainLocation( chain, curUser ); } - throwSound(); - Sample.INSTANCE.play( Assets.Sounds.CHAINS ); } @@ -175,6 +173,8 @@ public class EtherealChains extends Artifact { } hero.busy(); + throwSound(); + Sample.INSTANCE.play( Assets.Sounds.CHAINS ); hero.sprite.parent.add(new Chains(hero.sprite.center(), enemy.sprite.center(), new Callback() { public void call() { Actor.add(new Pushing(enemy, enemy.pos, pulledPos, new Callback() { @@ -232,6 +232,8 @@ public class EtherealChains extends Artifact { } hero.busy(); + throwSound(); + Sample.INSTANCE.play( Assets.Sounds.CHAINS ); hero.sprite.parent.add(new Chains(hero.sprite.center(), DungeonTilemap.raisedTileCenterToWorld(newHeroPos), new Callback() { public void call() { Actor.add(new Pushing(hero, hero.pos, newHeroPos, new Callback() {