v0.3.1: fixed bugs with teleportation, cleaned up Lloyd's beacon sfx

This commit is contained in:
Evan Debenham
2015-08-17 16:46:40 -04:00
parent 7ec008a03e
commit 4cbdf6e034
5 changed files with 5 additions and 7 deletions
@@ -204,7 +204,6 @@ public class LloydsBeacon extends Artifact {
if (Actor.findChar(target) == curUser){
ScrollOfTeleportation.teleportHero(curUser);
Sample.INSTANCE.play(Assets.SND_TELEPORT);
curUser.spendAndNext(1f);
} else {
final Ballistica bolt = new Ballistica( curUser.pos, target, Ballistica.MAGIC_BOLT );
@@ -212,7 +211,6 @@ public class LloydsBeacon extends Artifact {
if (ch == curUser){
ScrollOfTeleportation.teleportHero(curUser);
Sample.INSTANCE.play(Assets.SND_TELEPORT);
curUser.spendAndNext( 1f );
} else {
Sample.INSTANCE.play( Assets.SND_ZAP );
@@ -233,7 +231,7 @@ public class LloydsBeacon extends Artifact {
}
} while (pos == -1);
if (pos == -1) {
if (pos == -1 || Dungeon.bossLevel()) {
GLog.w(ScrollOfTeleportation.TXT_NO_TELEPORT);