mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-23 11:06:14 +01:00
Boss abilities should no longer continue when bosses die due to untracked damage. Still waiting for Bukkit to add the missing damage handling.
This commit is contained in:
parent
da0f028106
commit
a058bce396
BIN
MobArena.jar
BIN
MobArena.jar
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
name: MobArena
|
||||
author: garbagemule
|
||||
main: com.garbagemule.MobArena.MobArena
|
||||
version: 0.94.4.63
|
||||
version: 0.94.4.64
|
||||
softdepend: [Spout,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells,Vault]
|
||||
commands:
|
||||
ma:
|
||||
|
@ -388,9 +388,15 @@ public class ArenaListener
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MABoss boss = monsters.removeBoss(event.getEntity());
|
||||
if (boss != null) {
|
||||
boss.setDead(true);
|
||||
}
|
||||
|
||||
if (!monsterExp)
|
||||
if (!monsterExp) {
|
||||
event.setDroppedExp(0);
|
||||
}
|
||||
|
||||
event.getDrops().clear();
|
||||
|
||||
|
@ -94,4 +94,14 @@ public class MABoss
|
||||
public boolean isDead() {
|
||||
return dead;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the death status of a boss.
|
||||
* This is used by the ArenaListener to force kill bosses that die due to
|
||||
* unhandled damage events (Bukkit issues).
|
||||
* @param dead death status
|
||||
*/
|
||||
public void setDead(boolean dead) {
|
||||
this.dead = dead;
|
||||
}
|
||||
}
|
||||
|
@ -42,6 +42,7 @@ public class WaveManager
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
reloadWaves();
|
||||
wave = 0;
|
||||
singleWavesInstance = new TreeSet<Wave>(singleWaves);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user