|
@@ -30,48 +30,48 @@ import com.l2jserver.util.Rnd;
|
|
|
*/
|
|
|
public final class L2GrandBossInstance extends L2MonsterInstance
|
|
|
{
|
|
|
- private static final int BOSS_MAINTENANCE_INTERVAL = 10000;
|
|
|
-
|
|
|
- /**
|
|
|
- * Constructor for L2GrandBossInstance. This represent all grandbosses.
|
|
|
- *
|
|
|
- * @param objectId ID of the instance
|
|
|
- * @param template L2NpcTemplate of the instance
|
|
|
- */
|
|
|
+ private static final int BOSS_MAINTENANCE_INTERVAL = 10000;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Constructor for L2GrandBossInstance. This represent all grandbosses.
|
|
|
+ *
|
|
|
+ * @param objectId ID of the instance
|
|
|
+ * @param template L2NpcTemplate of the instance
|
|
|
+ */
|
|
|
public L2GrandBossInstance(int objectId, L2NpcTemplate template)
|
|
|
{
|
|
|
super(objectId, template);
|
|
|
- setIsRaid(true);
|
|
|
+ setIsRaid(true);
|
|
|
}
|
|
|
-
|
|
|
- @Override
|
|
|
+
|
|
|
+ @Override
|
|
|
protected int getMaintenanceInterval() { return BOSS_MAINTENANCE_INTERVAL; }
|
|
|
-
|
|
|
- @Override
|
|
|
+
|
|
|
+ @Override
|
|
|
public void onSpawn()
|
|
|
- {
|
|
|
- setIsNoRndWalk(true);
|
|
|
- if (getNpcId() == 29020 || getNpcId() == 29028) // baium and valakas are all the time in passive mode, theirs attack AI handled in AI scripts
|
|
|
- super.disableCoreAI(true);
|
|
|
- super.onSpawn();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Reduce the current HP of the L2Attackable, update its _aggroList and launch the doDie Task if necessary.<BR><BR>
|
|
|
- *
|
|
|
- */
|
|
|
- @Override
|
|
|
+ {
|
|
|
+ setIsNoRndWalk(true);
|
|
|
+ if (getNpcId() == 29020 || getNpcId() == 29028) // baium and valakas are all the time in passive mode, theirs attack AI handled in AI scripts
|
|
|
+ super.disableCoreAI(true);
|
|
|
+ super.onSpawn();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Reduce the current HP of the L2Attackable, update its _aggroList and launch the doDie Task if necessary.<BR><BR>
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @Override
|
|
|
public void reduceCurrentHp(double damage, L2Character attacker, boolean awake, boolean isDOT, L2Skill skill)
|
|
|
- {
|
|
|
- super.reduceCurrentHp(damage, attacker, awake, isDOT, skill);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- *
|
|
|
- * @see com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance#doDie(com.l2jserver.gameserver.model.actor.L2Character)
|
|
|
- */
|
|
|
- @Override
|
|
|
- public boolean doDie(L2Character killer)
|
|
|
+ {
|
|
|
+ super.reduceCurrentHp(damage, attacker, awake, isDOT, skill);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @see com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance#doDie(com.l2jserver.gameserver.model.actor.L2Character)
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public boolean doDie(L2Character killer)
|
|
|
{
|
|
|
if (!super.doDie(killer))
|
|
|
return false;
|
|
@@ -85,7 +85,7 @@ public final class L2GrandBossInstance extends L2MonsterInstance
|
|
|
if (player != null)
|
|
|
{
|
|
|
broadcastPacket(new SystemMessage(SystemMessageId.RAID_WAS_SUCCESSFUL));
|
|
|
- if (player.getParty() != null)
|
|
|
+ if (player.getParty() != null)
|
|
|
{
|
|
|
for (L2PcInstance member : player.getParty().getPartyMembers())
|
|
|
{
|
|
@@ -97,16 +97,25 @@ public final class L2GrandBossInstance extends L2MonsterInstance
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
-
|
|
|
- @Override
|
|
|
- public float getVitalityPoints(int damage)
|
|
|
- {
|
|
|
- return - super.getVitalityPoints(damage) / 100;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public boolean useVitalityRate()
|
|
|
- {
|
|
|
- return false;
|
|
|
- }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public float getVitalityPoints(int damage)
|
|
|
+ {
|
|
|
+ return - super.getVitalityPoints(damage) / 100;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean useVitalityRate()
|
|
|
+ {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ /* (non-Javadoc)
|
|
|
+ * @see com.l2jserver.gameserver.model.actor.L2Character#giveRaidCurse()
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public boolean giveRaidCurse()
|
|
|
+ {
|
|
|
+ return getLevel() < 74;
|
|
|
+ }
|
|
|
}
|