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
@@ -133,7 +133,7 @@ public class CrystalSpire extends Mob {
dmg += 12; //18-27 damage dmg += 12; //18-27 damage
Buff.prolong(ch, Cripple.class, 30f); Buff.prolong(ch, Cripple.class, 30f);
} }
ch.damage(dmg, CrystalSpire.this); ch.damage(dmg, new SpireSpike());
int movePos = i; int movePos = i;
//crystal guardians get knocked away from the hero, others get knocked away from the spire //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; return true;
} }
public static class SpireSpike{}
private void diamondAOEAttack(){ private void diamondAOEAttack(){
targetedCells.clear(); targetedCells.clear();
@@ -668,7 +668,7 @@ public class GnollGeomancer extends Mob {
} }
if (ch != null && !(ch instanceof GnollGeomancer)){ 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()){ if (ch.isAlive()){
Buff.prolong( ch, Paralysis.class, ch instanceof GnollGuard ? 10 : 3 ); Buff.prolong( ch, Paralysis.class, ch instanceof GnollGuard ? 10 : 3 );
@@ -827,7 +827,7 @@ public class CavesBossLevel extends Level {
Char ch = Actor.findChar(cell); Char ch = Actor.findChar(cell);
if (ch != null && !(ch instanceof DM300) && !ch.flying) { if (ch != null && !(ch instanceof DM300) && !ch.flying) {
Sample.INSTANCE.play( Assets.Sounds.LIGHTNING ); 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(); ch.sprite.flash();
if (ch == Dungeon.hero){ if (ch == Dungeon.hero){