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