Set health to max health when respawning.
This commit is contained in:
parent
0d8115fdc3
commit
ba133db087
Binary file not shown.
@ -94,6 +94,7 @@ public class EliteMonster {
|
|||||||
private void resetToSpawn() {
|
private void resetToSpawn() {
|
||||||
if (targetlist.size()==0 && m.getLocation().distanceSquared(myspawn)>81) {
|
if (targetlist.size()==0 && m.getLocation().distanceSquared(myspawn)>81) {
|
||||||
m.teleport(myspawn);
|
m.teleport(myspawn);
|
||||||
|
m.setHealth(m.getMaxHealth());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user