1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-11 09:42:54 +00:00

Automatic database updates

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-31 19:03:03 -03:00
parent 657b555fe1
commit 551dc6917e
26 changed files with 355 additions and 113 deletions

View File

@@ -268,7 +268,13 @@ public class NPCTemplate extends ActorTemplate<NPC> {
@Override
protected NPC createInstance() {
return new NPC(this.id);
final NPC npc = new NPC(this.id);
// new npcs are full hp/mp
npc.setHP(getMaximumHP());
npc.setMP(getMaximumMP());
return npc;
}
/**