summaryrefslogtreecommitdiff
path: root/npc/instances
diff options
context:
space:
mode:
authortungsinpei <sinpeiton@hotmail.com>2015-09-20 02:28:48 +0800
committertungsinpei <sinpeiton@hotmail.com>2015-09-20 02:29:08 +0800
commit0a0b2889bdf3ca46b8048a8a10c794e4de740c56 (patch)
tree141bf8269e4a862a6fce82fceb875fcebb612578 /npc/instances
parente16f22c2ddb1361064abf6cbbc4e36298d43b730 (diff)
downloadhercules-0a0b2889bdf3ca46b8048a8a10c794e4de740c56.tar.gz
hercules-0a0b2889bdf3ca46b8048a8a10c794e4de740c56.tar.bz2
hercules-0a0b2889bdf3ca46b8048a8a10c794e4de740c56.tar.xz
hercules-0a0b2889bdf3ca46b8048a8a10c794e4de740c56.zip
Fix incorrect condition checks in attaching map of Sealed Shrine Instance.
Diffstat (limited to 'npc/instances')
-rw-r--r--npc/instances/SealedShrine.txt13
1 files 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;