Prechádzať zdrojové kódy

Illusion of Vampire Boss Spawn Fixes (#6875)

Fixes an exploit which allowed to spawn Berserk Bomi indefinitely upon first quest completion.

Thanks to @Everade @Atemo
mazvi 3 rokov pred
rodič
commit
5d34c7b16b
1 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  1. 3 2
      npc/re/quests/quests_16_2_illusion.txt

+ 3 - 2
npc/re/quests/quests_16_2_illusion.txt

@@ -3907,8 +3907,10 @@ gef_d01_i,81,135,5	script	Wizard#ilgf01	4_F_BOMI,5,5,{
 			specialeffect EF_DEVIL;
 			mes "[Bomi]";
 			mes "Oh, no! There is too many toxins in my body. It's getting dangerous!";
-			if (mobcount("gef_d01_i", "ill_vampire_spawn_bomi::OnMobDead") < 1 && mobcount("gef_d01_i", "ill_vampire_spawn_dracula::OnMobDead") < 1)
+			if (mobcount("gef_d01_i", "ill_vampire_spawn_bomi::OnMobDead") < 1 && mobcount("gef_d01_i", "ill_vampire_spawn_dracula::OnMobDead") < 1) {
+				.bomi_count = 0;
 				donpcevent "ill_vampire_spawn_bomi::OnStart";
+			}
 			close;
 		}
 		mes "[Bomi]";
@@ -3966,7 +3968,6 @@ OnStart:
 	mapannounce "gef_d01_i", "Oh, no...	I can feel the toxins spreading through my body...!", bc_map, 0xFF0000;
 	if (mobcount("gef_d01_i", "ill_vampire_spawn_bomi::OnMobDead") < 1 && mobcount("gef_d01_i", "ill_vampire_spawn_dracula::OnMobDead") < 1) {
 		monster "gef_d01_i",84,135,"Berserk Bomi",3756,1,"ill_vampire_spawn_bomi::OnMobDead";
-		.bomi_count = 0;
 	}
 	end;
 OnMobDead: