-- handle the holy support school

HDELFEAR = add_spell {
	["name"] = 	"Remove Fear",
	["name2"] = 	"RemFear",
	["school"] = 	{SCHOOL_HSUPPORT},
	["spell_power"] = 0,
	["am"] = 	0,
	["level"] = 	1,
	["mana"] = 	3,
	["mana_max"] = 	3,
	["fail"] = 	10,
	["stat"] = 	A_WIS,
	["spell"] = 	function()
			fire_ball(Ind, GF_REMFEAR_PLAYER, 0, get_level(Ind, HDELFEAR, 30 * 2), 4, " speaks some faithful words and you lose your fear.")
			set_afraid(Ind, 0)
			set_res_fear(Ind, get_level(Ind, HDELFEAR, 30))
			end,
	["info"] = 	function()
			return "dur "..get_level(Ind, HDELFEAR, 30)
			end,
	["desc"] = 	{
			"Removes fear from your heart for a while.",
			"***Automatically projecting***",
	}
}

HSANCTUARY_I = add_spell {
	["name"] = 	"Sanctuary I",
	["name2"] = 	"Sanc I",
	["school"] = 	{SCHOOL_HSUPPORT},
	["spell_power"] = 0,
	["am"] = 	75,
	["level"] = 	3,
	["mana"] = 	5,
	["mana_max"] = 	5,
	["fail"] = 	10,
	["stat"] = 	A_WIS,
	["spell"] = 	function()
--			project(0 - Ind, get_level(Ind, HSANCTUARY, 10), player.wpos, player.py, player.px, (3 + get_level(Ind, HSANCTUARY, 30)) * 2, GF_OLD_SLEEP, 64 + 16 + 8, "mumbles softly")
			project(0 - Ind, get_level(Ind, HSANCTUARY_I, 10), player.wpos, player.py, player.px, 10 + get_level(Ind, HSANCTUARY_I, 80), GF_OLD_SLEEP, 64 + 16 + 8, "mumbles softly")
	end,
	["info"] = 	function()
			return "power "..(5 + get_level(Ind, HSANCTUARY_I, 80)).." rad "..get_level(Ind, HSANCTUARY_I, 10)
	end,
	["desc"] = 	{ "Lets monsters next to you fall asleep.", }
}
HSANCTUARY_II = add_spell {
	["name"] = 	"Sanctuary II",
	["name2"] = 	"Sanc II",
	["school"] = 	{SCHOOL_HSUPPORT},
	["spell_power"] = 0,
	["am"] = 	75,
	["level"] = 	23,
	["mana"] = 	25,
	["mana_max"] = 	25,
	["fail"] = 	-35,
	["stat"] = 	A_WIS,
	["spell"] = 	function()
--			project_los(Ind, GF_OLD_SLEEP, 3 + get_level(Ind, HSANCTUARY, 25), "mumbles softly")
			project_los(Ind, GF_OLD_SLEEP, 5 + get_level(Ind, HSANCTUARY_I, 80), "mumbles softly")
	end,
	["info"] = 	function()
			return "power "..(5 + get_level(Ind, HSANCTUARY_I, 80))
	end,
	["desc"] = 	{ "Lets nearby monsters fall asleep.", }
}

HSATISFYHUNGER = add_spell {
	["name"] = 	"Satisfy Hunger",
	["name2"] = 	"SatHunger",
	["school"] = 	{SCHOOL_HSUPPORT},
	["spell_power"] = 0,
	["am"]  = 	75,
	["level"] = 	10,
	["mana"] = 	20,
	["mana_max"] = 	20,
	["fail"] = 	40,
	["stat"] = 	A_WIS,
	["spell"] = 	function()
			set_food(Ind, PY_FOOD_MAX - 1)
			fire_ball(Ind, GF_SATHUNGER_PLAYER, 0, 1, 3, "")
			end,
	["info"] = 	function()
			return ""
			end,
	["desc"] = 	{
			"Satisfies your hunger.",
			"***Automatically projecting***",
	}
}

HSENSE_I = add_spell {
	["name"] = 	"Sense Surroundings I",
	["name2"] = 	"SSurr I",
	["school"] = 	SCHOOL_HSUPPORT,
	["spell_power"] = 0,
	["am"] = 	75,
	["level"] = 	20,
	["mana"] = 	15,
	["mana_max"] = 	15,
	["fail"] = 	-20,
	["stat"] = 	A_WIS,
	["spell"] = 	function()
			map_area(Ind)
	end,
	["info"] = 	function()
			return ""
	end,
	["desc"] = 	{ "Maps the dungeon around you.", }
}
HSENSE_II = add_spell {
	["name"] = 	"Sense Surroundings II",
	["name2"] = 	"SSurr II",
	["school"] = 	SCHOOL_HSUPPORT,
	["spell_power"] = 0,
	["am"] = 	75,
	["level"] = 	40,
	["mana"] = 	80,
	["mana_max"] = 	80,
	["fail"] = 	-65,
	["stat"] = 	A_WIS,
	["spell"] = 	function()
			wiz_lite_extra(Ind)
	end,
	["info"] = 	function()
			return ""
	end,
	["desc"] = 	{ "Gives clairvoyance, mapping and lighting up the whole dungeon.", }
}

HDETECTEVIL = add_spell {
	["name"] = 	"Detect Evil",
	["name2"] = 	"DetEvil",
	["school"] = 	SCHOOL_HSUPPORT,
	["spell_power"] = 0,
	["am"] = 	75,
	["level"] = 	3,
	["mana"] = 	3,
	["mana_max"] = 	3,
	["fail"] = 	15,
	["stat"] = 	A_WIS,
	["spell"] = 	function()
			detect_evil(Ind)
			end,
	["info"] = 	function()
			return ""
			end,
	["desc"] = 	{ "Detects all nearby evil creatures.", }
}
HSENSEMON = add_spell {
	["name"] = 	"Sense Monsters",
	["name2"] = 	"SenseMon",
	["school"] = 	SCHOOL_HSUPPORT,
	["spell_power"] = 0,
	["am"] = 	75,
	["level"] = 	33,
	["mana"] = 	15,
	["mana_max"] = 	15,
	["fail"] = 	-55,
	["stat"] = 	A_WIS,
	["spell"] = 	function()
			set_tim_esp(Ind, 10 + randint(10) + 30 + get_level(Ind, HSENSEMON, 20))
			end,
	["info"] = 	function()
			return "dur "..(40 + get_level(Ind, HSENSEMON, 20)).."+d10"
			end,
	["desc"] = 	{ "Lets you sense the minds of monsters for a while.", }
}

HZEAL_I = add_spell {
	["name"] = 	"Zeal I",
	["name2"] = 	"Zeal I",
	["school"] = 	SCHOOL_HSUPPORT,
	["spell_power"] = 0,
	["am"] = 	50,
	["level"] = 	27,
	["mana"] = 	30,
	["mana_max"] = 	30,
	["fail"] = 	-35,
	["stat"] = 	A_WIS,
	["spell"] = 	function()
		--fire_ball(Ind, GF_ZEAL_PLAYER, 0, 20, 3, "")
		set_zeal(Ind, 10, 9 + randint(5))
	end,
	["info"] = 	function()
			return "dur 9+d5, +1 BpR"
	end,
	["desc"] = 	{
		"Increases your melee attacks per round by +1 for 9+d5 turns.",
		-- "***Automatically projecting (+1 EA)***",
	}
}
HZEAL_II = add_spell {
	["name"] = 	"Zeal II",
	["name2"] = 	"Zeal II",
	["school"] = 	SCHOOL_HSUPPORT,
	["spell_power"] = 0,
	["am"] = 	50,
	["level"] = 	37,
	["mana"] = 	60,
	["mana_max"] = 	60,
	["fail"] = 	-85,
	["stat"] = 	A_WIS,
	["spell"] = 	function()
		fire_ball(Ind, GF_ZEAL_PLAYER, 0, 40, 3, "")
		set_zeal(Ind, 20, 9 + randint(5))
	end,
	["info"] = 	function()
			return "dur 9+d5, +2 BpR"
	end,
	["desc"] = 	{
		"Increases your melee attacks per round by +2 for 9+d5 turns.",
		"***Automatically projecting (+1 BpR)***",
	}
}
HZEAL_III = add_spell {
	["name"] = 	"Zeal III",
	["name2"] = 	"Zeal III",
	["school"] = 	SCHOOL_HSUPPORT,
	["spell_power"] = 0,
	["am"] = 	50,
	["level"] = 	47,
	["mana"] = 	90,
	["mana_max"] = 	90,
	["fail"] = 	-110,
	["stat"] = 	A_WIS,
	["spell"] = 	function()
		fire_ball(Ind, GF_ZEAL_PLAYER, 0, 60, 3, "")
		set_zeal(Ind, 30, 9 + randint(5))
	end,
	["info"] = 	function()
			return "dur 9+d5, +3 BpR"
	end,
	["desc"] = 	{
		"Increases your melee attacks per round by +3 for 9+d5 turns.",
		"***Automatically projecting (+2 EA) ***",
	}
}
