v2.4.0: fixed armband not working on hiding mimics

This commit is contained in:
Evan Debenham
2024-02-25 12:39:35 -05:00
parent 78429602f8
commit 9f230b4952

View File

@@ -34,6 +34,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Invisibility;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.MagicImmune;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent;
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mimic;
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.Shopkeeper;
import com.shatteredpixel.shatteredpixeldungeon.effects.Surprise;
@@ -121,7 +122,8 @@ public class MasterThievesArmband extends Artifact {
Char ch = Actor.findChar(target);
if (ch instanceof Shopkeeper){
GLog.w( Messages.get(MasterThievesArmband.class, "steal_shopkeeper") );
} else if (ch.alignment != Char.Alignment.ENEMY){
} else if (ch.alignment != Char.Alignment.ENEMY
&& !(ch instanceof Mimic && ch.alignment == Char.Alignment.NEUTRAL)){
GLog.w( Messages.get(MasterThievesArmband.class, "no_target") );
} else if (ch instanceof Mob) {
curUser.busy();