From da6263cdd6d81a1cd2cabdb66b980f9de6609d79 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 31 Mar 2022 01:34:59 -0400 Subject: [PATCH] v1.2.1: fixed the armband steal effect working on lower levelled enemies --- .../items/artifacts/MasterThievesArmband.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/MasterThievesArmband.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/MasterThievesArmband.java index 12daf63f6..ee944ae8d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/MasterThievesArmband.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/MasterThievesArmband.java @@ -137,7 +137,14 @@ public class MasterThievesArmband extends Artifact { } float lootChance = ((Mob) ch).lootChance() * lootMultiplier; - if (ch.buff(StolenTracker.class) != null || lootChance == 0){ + + if (Dungeon.hero.lvl > ((Mob) ch).maxLvl + 2) { + lootChance = 0; + } else if (ch.buff(StolenTracker.class) != null){ + lootChance = 0; + } + + if (lootChance == 0){ GLog.w(Messages.get(MasterThievesArmband.class, "no_steal")); } else if (Random.Float() <= lootChance){ Item loot = ((Mob) ch).createLoot();