From 5b4d1acfc7955cbb80c129526abd2948021808fc Mon Sep 17 00:00:00 2001 From: Ancyker Date: Thu, 1 Oct 2015 07:48:03 -0400 Subject: Fixed 2 bugs in Sealed Shrine Fixed trying to disable wrong NPCs. Fixed not enabling all Bobbing Torches. Both bugs were (re)introduced in cd95d1cadacc9b506e08d4cbe52a4a0ce2a59df3 Closes #765 as merged Signed-off-by: Haru --- npc/instances/SealedShrine.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'npc/instances') diff --git a/npc/instances/SealedShrine.txt b/npc/instances/SealedShrine.txt index 89b9a6f98..4750f2105 100644 --- a/npc/instances/SealedShrine.txt +++ b/npc/instances/SealedShrine.txt @@ -441,8 +441,8 @@ prt_monk,261,91,3 script Rust Blackhand#edq 4_M_DWARF,{ OnInstanceInit: // Pick one "true" Gravestone and 12 "false" Gravestones. .@true = rand(1,13); - for (.@i = 1; .@i<13; ++.@i) { - disablenpc instance_npcname("Gravestone#1F_1"+((.@i == .@true)?"F":"T")); + for (.@i = 1; .@i <= 13; ++.@i) { + disablenpc instance_npcname("Gravestone#1F_"+.@i+((.@i == .@true)?"T":"F")); } disablenpc instance_npcname("ins_baphomet_lotto"); end; @@ -450,7 +450,7 @@ OnInstanceInit: 1@cata,3,2,0 script ins_baphomet_lotto2 -1,{ OnEnable: - for (.@i = 1; .@i < 12; ++.@i) + for (.@i = 1; .@i <= 12; ++.@i) enablenpc instance_npcname("Bobbing Torch#"+.@i); end; } -- cgit v1.2.3-60-g2f50