Set health to max health when respawning.

This commit is contained in:
sigonasr2 2016-08-07 21:15:12 -05:00
parent 0d8115fdc3
commit ba133db087
2 changed files with 1 additions and 0 deletions

Binary file not shown.

View File

@ -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());
} }
} }