
public skill_devour_soul(id,victim)
{
	static health,max_health,bonus_health,bonus_spirit;
	
	health=get_user_health(id);
	max_health=g_player_max_health[id];
	bonus_health=floatround(g_skill[id][P_SKILL_1]*(g_player_max_health[victim]*0.2));
	bonus_spirit=floatround(g_skill[id][P_SKILL_1]*(g_player_max_spirit[victim]*0.05));
	
	if (health < max_health)
	{
		if (health+bonus_health > max_health)
		{
			set_user_health(id,max_health);
		}
		else
		{
			set_user_health(id,health+bonus_health);
		}
		
		spirit_set(id,g_player_spirit[id]+bonus_spirit);
		create_screen_fade(id,(1<<10),(1<<10),(1<<12),0,0,255,bonus_health);
	}
	
	return PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1053\\ f0\\ fs16 \n\\ par }
*/
