v2.3.0: fixed a few cases of misattributed damage from specific bosses
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user