From 8c277eddda947598d6a53396fbc9fc1e4c6b90e7 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 16 Jan 2023 16:05:41 -0500 Subject: [PATCH] v2.0.0: fixed Crush AOE counting for DK challenge badge --- .../shatteredpixeldungeon/actors/buffs/Combo.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Combo.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Combo.java index bad78d6f5..48faa5564 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Combo.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Combo.java @@ -28,6 +28,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.Actor; import com.shatteredpixel.shatteredpixeldungeon.actors.Char; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent; +import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.DwarfKing; import com.shatteredpixel.shatteredpixeldungeon.items.BrokenSeal; import com.shatteredpixel.shatteredpixeldungeon.items.Item; import com.shatteredpixel.shatteredpixeldungeon.items.wands.WandOfBlastWave; @@ -355,7 +356,12 @@ public class Combo extends Buff implements ActionIndicator.Action { aoeHit /= 2; aoeHit -= ch.drRoll(); if (ch.buff(Vulnerable.class) != null) aoeHit *= 1.33f; - ch.damage(aoeHit, target); + if (ch instanceof DwarfKing){ + //change damage type for DK so that crush AOE doesn't count for DK's challenge badge + ch.damage(aoeHit, this); + } else { + ch.damage(aoeHit, target); + } ch.sprite.bloodBurstA(target.sprite.center(), aoeHit); ch.sprite.flash();