v2.3.0: fixed a few cases of misattributed damage from specific bosses

This commit is contained in:
Evan Debenham
2023-12-08 13:31:54 -05:00
parent 77366a402e
commit 5bdc77b31c
3 changed files with 5 additions and 3 deletions

View File

@@ -133,7 +133,7 @@ public class CrystalSpire extends Mob {
dmg += 12; //18-27 damage
Buff.prolong(ch, Cripple.class, 30f);
}
ch.damage(dmg, CrystalSpire.this);
ch.damage(dmg, new SpireSpike());
int movePos = i;
//crystal guardians get knocked away from the hero, others get knocked away from the spire
@@ -208,6 +208,8 @@ public class CrystalSpire extends Mob {
return true;
}
public static class SpireSpike{}
private void diamondAOEAttack(){
targetedCells.clear();

View File

@@ -668,7 +668,7 @@ public class GnollGeomancer extends Mob {
}
if (ch != null && !(ch instanceof GnollGeomancer)){
ch.damage(Random.NormalIntRange(5, 10), this);
ch.damage(Random.NormalIntRange(5, 10), new GnollGeomancer.Boulder());
if (ch.isAlive()){
Buff.prolong( ch, Paralysis.class, ch instanceof GnollGuard ? 10 : 3 );

View File

@@ -827,7 +827,7 @@ public class CavesBossLevel extends Level {
Char ch = Actor.findChar(cell);
if (ch != null && !(ch instanceof DM300) && !ch.flying) {
Sample.INSTANCE.play( Assets.Sounds.LIGHTNING );
ch.damage( Random.NormalIntRange(6, 12), Electricity.class);
ch.damage( Random.NormalIntRange(6, 12), new Electricity());
ch.sprite.flash();
if (ch == Dungeon.hero){