Store proper HP and MP for raidbosses.

This commit is contained in:
MobiusDevelopment
2020-05-02 15:18:28 +00:00
parent c00935ee0d
commit 7682ea912f
18 changed files with 36 additions and 36 deletions

View File

@ -420,8 +420,8 @@ public class DBSpawnManager
try
{
statement.setLong(1, info.getLong("respawnTime"));
statement.setDouble(2, info.getDouble("currentHP"));
statement.setDouble(3, info.getDouble("currentMP"));
statement.setDouble(2, npc.isDead() ? npc.getMaxHp() : info.getDouble("currentHP"));
statement.setDouble(3, npc.isDead() ? npc.getMaxMp() : info.getDouble("currentMP"));
statement.setInt(4, npcId);
statement.executeUpdate();
statement.clearParameters();