mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-11 09:42:54 +00:00
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user