Proper use of isScriptValue instead of getScriptValue method.

This commit is contained in:
MobiusDevelopment
2020-01-28 00:43:54 +00:00
parent d63bf771ff
commit 3071525a9c
35 changed files with 71 additions and 71 deletions

View File

@@ -697,12 +697,12 @@ public class LastImperialTomb extends AbstractInstance
{
if (npc.getId() == SCARLET1)
{
if ((npc.getScriptValue() == 0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
if (npc.isScriptValue(0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
{
npc.setScriptValue(1);
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
}
if ((npc.getScriptValue() == 1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
if (npc.isScriptValue(1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
{
npc.setScriptValue(2);
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);