v2.3.0: fixed monk abilities possibly DQing for no weapons badge

This commit is contained in:
Evan Debenham
2024-01-02 20:04:34 -05:00
parent c0f6627fcb
commit 7ef2a8629a

View File

@@ -450,8 +450,8 @@ public class DwarfKing extends Mob {
@Override
public void damage(int dmg, Object src) {
//hero only counts as unarmed if they have no weapon and aren't benefiting from force
if (src == Dungeon.hero && (Dungeon.hero.belongings.weapon() != null || Dungeon.hero.buff(RingOfForce.Force.class) != null)){
//hero counts as unarmed if they aren't attacking with a weapon and aren't benefiting from force
if (src == Dungeon.hero && (!RingOfForce.fightingUnarmed(Dungeon.hero) || Dungeon.hero.buff(RingOfForce.Force.class) != null)){
Statistics.qualifiedForBossChallengeBadge = false;
//Corrosion, corruption, and regrowth do no direct damage and so have their own custom logic
//Transfusion damages DK and so doesn't need custom logic