v2.0.0: fixed Crush AOE counting for DK challenge badge

This commit is contained in:
Evan Debenham
2023-01-16 16:05:41 -05:00
parent c9bb2421f5
commit 8c277eddda

View File

@@ -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();