Skip to content
Snippets Groups Projects
Commit fedc16b6 authored by Rumen Nikiforov's avatar Rumen Nikiforov
Browse files

BETA: Fixing Frintezza instance bug when a monster self-destruct should...

BETA: Fixing Frintezza instance bug when a monster self-destruct should trigger onKill thanks '''tukune'''
parent 46f7e118
No related branches found
No related tags found
No related merge requests found
...@@ -1242,6 +1242,16 @@ public class FinalEmperialTomb extends Quest ...@@ -1242,6 +1242,16 @@ public class FinalEmperialTomb extends Quest
return null; return null;
} }
@Override
public String onSpellFinished(L2Npc npc, L2PcInstance player, L2Skill skill)
{
if (skill.isSuicideAttack())
{
return onKill(npc, null, false);
}
return super.onSpellFinished(npc, player, skill);
}
@Override @Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isPet) public String onKill(L2Npc npc, L2PcInstance player, boolean isPet)
{ {
...@@ -1320,12 +1330,13 @@ public class FinalEmperialTomb extends Quest ...@@ -1320,12 +1330,13 @@ public class FinalEmperialTomb extends Quest
addKillId(DARK_CHOIR_PLAYER); addKillId(DARK_CHOIR_PLAYER);
addAttackId(SCARLET1); addAttackId(SCARLET1);
addKillId(SCARLET2); addKillId(SCARLET2);
for (int mobId : PORTRAITS) addKillId(PORTRAITS);
addKillId(mobId); addKillId(DEMONS);
for (int mobId : DEMONS)
addKillId(mobId);
for (int mobId : _mustKillMobsId) for (int mobId : _mustKillMobsId)
{
addKillId(mobId); addKillId(mobId);
}
addSpellFinishedId(18333);
} }
public static void main(String[] args) public static void main(String[] args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment