v2.0.0: fixed Crush AOE counting for DK challenge badge
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user