summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDastgir <dastgir@users.noreply.github.com>2015-09-20 06:22:35 +0530
committerDastgir <dastgir@users.noreply.github.com>2015-09-20 06:22:35 +0530
commit09d93aa3339cb16a29dc916af0a200617e704099 (patch)
tree141bf8269e4a862a6fce82fceb875fcebb612578
parente16f22c2ddb1361064abf6cbbc4e36298d43b730 (diff)
parent0a0b2889bdf3ca46b8048a8a10c794e4de740c56 (diff)
downloadhercules-09d93aa3339cb16a29dc916af0a200617e704099.tar.gz
hercules-09d93aa3339cb16a29dc916af0a200617e704099.tar.bz2
hercules-09d93aa3339cb16a29dc916af0a200617e704099.tar.xz
hercules-09d93aa3339cb16a29dc916af0a200617e704099.zip
Merge pull request #725 from QQfoolsorellina/Branch_e16f22c2ddb1361064abf6cbbc4e36298d43b730
Fix incorrect condition checks in attaching map of Sealed Shrine Instance.
-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;