v2.3.0: fixed monk abilities possibly DQing for no weapons badge
This commit is contained in:
+2
-2
@@ -450,8 +450,8 @@ public class DwarfKing extends Mob {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void damage(int dmg, Object src) {
|
public void damage(int dmg, Object src) {
|
||||||
//hero only counts as unarmed if they have no weapon and aren't benefiting from force
|
//hero counts as unarmed if they aren't attacking with a weapon and aren't benefiting from force
|
||||||
if (src == Dungeon.hero && (Dungeon.hero.belongings.weapon() != null || Dungeon.hero.buff(RingOfForce.Force.class) != null)){
|
if (src == Dungeon.hero && (!RingOfForce.fightingUnarmed(Dungeon.hero) || Dungeon.hero.buff(RingOfForce.Force.class) != null)){
|
||||||
Statistics.qualifiedForBossChallengeBadge = false;
|
Statistics.qualifiedForBossChallengeBadge = false;
|
||||||
//Corrosion, corruption, and regrowth do no direct damage and so have their own custom logic
|
//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
|
//Transfusion damages DK and so doesn't need custom logic
|
||||||
|
|||||||
Reference in New Issue
Block a user