src/priestSkills.js
//Returns the party member with the lowest hp -> max_hp ratio.

Returns the party member with the lowest hp -> max_hp ratio.
Returns the party member with the lowest hp - > max_hp ratio .
function lowest_health_partymember() {
	var party = [];
	if (parent.party_list.length > 0) {
		for (id in parent.party_list) {
			var member = parent.party_list[id];
			var entity = parent.entities[member];
			if (member == character.name) entity = character;
			if (entity != null) party.push({ name: member, entity: entity });
		}
	}
	else {
		party.push(
			{
				name: character.name,
				entity: character
			});
	}
	for (id in party) {
		var member = party[id];
		if (member.entity != null) {
			member.entity.health_ratio = member.entity.hp / member.entity.max_hp;
		}
		else {
			member.health_ratio = 1;
		}
	}
	party.sort(function (current, next) {
		return current.entity.health_ratio - next.entity.health_ratio;
	});
	return party[0].entity;
}
function lowest_health_partymember ( ) { var party = [ ] ; if ( parent . party_list . length > 0 ) { for ( id in parent . party_list ) { var member = parent . party_list [ id ] ; var entity = parent . entities [ member ] ; if ( member == character . name ) entity = character ; if ( entity != null ) party . push ( { name : member , entity : entity } ) ; } } else { party . push ( { name : character . name , entity : character } ) ; } for ( id in party ) { var member = party [ id ] ; if ( member . entity != null ) { member . entity . health_ratio = member . entity . hp / member . entity . max_hp ; } else { member . health_ratio = 1 ; } } party . sort ( function ( current , next ) { return current . entity . health_ratio - next . entity . health_ratio ; } ) ; return party [ 0 ] . entity ; }
Returns the party member with the lowest hp -> max_hp ratio.
Returns the party member with the lowest hp - > max_hp ratio .
//Add Self to Party Array
 //Populate health percentages
 //Order our party array by health percentage
 //Return the lowest health
