-----------------------------------	
-- Area: Behemoths Dominion	
-- MOB:  Legendary Weapon	
-----------------------------------	
	
require("/scripts/globals/fieldsofvalor");
require("/scripts/globals/keyitems");
require("/scripts/globals/missions");
	
-----------------------------------	
-- onMobDeath	
-----------------------------------	
	
function onMobDeath(mob,killer)	
	
	if(killer:getCurrentMission(ZILART) == HEADSTONE_PILGRIMAGE and killer:hasKeyItem(LIGHTNING_FRAGMENT) == false) then
		if(GetServerVariable("[ZM4]Lightning_Headstone_Active") == 0) then	
			SetServerVariable("[ZM4]Lightning_Headstone_Active",1);	
		elseif(GetServerVariable("[ZM4]Lightning_Headstone_Active") == 1) then	
			SetServerVariable("[ZM4]Lightning_Headstone_Active",os.time()+ 900);
		end
	else
		checkRegime(killer,mob,102,2);
	end
	
end;	
