v0.4.2b: fixed a bug where a certain cursed wand effect would never trigger

This commit is contained in:
Evan Debenham 2016-09-13 20:39:13 -04:00
parent 940363c3bc
commit a99803117b

View File

@ -59,6 +59,7 @@ import com.shatteredpixel.shatteredpixeldungeon.levels.traps.CursingTrap;
import com.shatteredpixel.shatteredpixeldungeon.levels.traps.LightningTrap;
import com.shatteredpixel.shatteredpixeldungeon.levels.traps.SummoningTrap;
import com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica;
import com.shatteredpixel.shatteredpixeldungeon.messages.Languages;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.plants.Plant;
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
@ -401,7 +402,7 @@ public class CursedWand {
case 2:
try {
Dungeon.saveAll();
if(!Messages.get(CursedWand.class, "nothing").equals("nothing happens")){
if(Messages.lang() != Languages.ENGLISH){
//Don't bother doing this joke to none-english speakers, I doubt it would translate.
GLog.i(Messages.get(CursedWand.class, "nothing"));
wand.wandUsed();