From 0a0b2889bdf3ca46b8048a8a10c794e4de740c56 Mon Sep 17 00:00:00 2001 From: tungsinpei Date: Sun, 20 Sep 2015 02:28:48 +0800 Subject: Fix incorrect condition checks in attaching map of Sealed Shrine Instance. --- npc/instances/SealedShrine.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/npc/instances/SealedShrine.txt b/npc/instances/SealedShrine.txt index 5bbe81d27..a9bc499c5 100644 --- a/npc/instances/SealedShrine.txt +++ b/npc/instances/SealedShrine.txt @@ -120,13 +120,12 @@ monk_test,309,146,3 script Friar Patrick#edq 4_M_OLDFRIAR,{ mes "Umm... But it seems that there is a problem here... I'll check quickly. Please wait."; } else { - for (.@i = 1; .@i <= 2; ++.@i) { - if( instance_attachmap(.@i + "@cata", .@instance) == "" ) - break; - } - if( .@i < 2 ) { - instance_destroy(.@instance); - close; + for (.@i = 1; .@i <= 2; .@i++) { + if( instance_attachmap(.@i + "@cata", .@instance) == "" ) { + mes "Failed to attach "+.@i+"@cata as a map!"; + instance_destroy(.@instance); + close; + } } instance_set_timeout 7200,300,.@instance; -- cgit v1.2.3-60-g2f50