v0.7.4: cursed wand discovery message now plays before the cursed effect

This commit is contained in:
Evan Debenham 2019-07-17 02:36:51 -04:00
parent 8e39728069
commit 62f7f2293b

View File

@ -446,6 +446,9 @@ public abstract class Wand extends Item {
Invisibility.dispel();
if (curWand.cursed){
if (!curWand.cursedKnown){
GLog.n(Messages.get(Wand.class, "curse_discover", curWand.name()));
}
CursedWand.cursedZap(curWand,
curUser,
new Ballistica(curUser.pos, target, Ballistica.MAGIC_BOLT),
@ -455,9 +458,6 @@ public abstract class Wand extends Item {
curWand.wandUsed();
}
});
if (!curWand.cursedKnown){
GLog.n(Messages.get(Wand.class, "curse_discover", curWand.name()));
}
} else {
curWand.fx(shot, new Callback() {
public void call() {