Sometimes RaidBos (Ex: Varka's Mos, Ember, etc...) after being killed would not update into database with timestamp but with 0HP, if left unchecked there would be no re-spawn or after server restart it would spawn with 0HP. See below ss:
Thanks to Mobius who was so kind to respond with the next fix(i am still testing it and so far so good):
Index: java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java
===================================================================
--- java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java (revision 7034)
+++ java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java (working copy)
@@ -377,8 +377,8 @@
{
// TODO(Zoey76): Change this to use batch.
statement.setLong(1, info.getLong("respawnTime"));
- statement.setDouble(2, info.getDouble("currentHP"));
- statement.setDouble(3, info.getDouble("currentMP"));
+ statement.setDouble(2, boss.isDead() ? boss.getMaxHp() : info.getDouble("currentHP"));
+ statement.setDouble(3, boss.isDead() ? boss.getMaxMp() : info.getDouble("currentMP"));
statement.setInt(4, bossId);
statement.executeUpdate();
statement.clearParameters();