public static Pokemon useItem(Pokemon selectedPokemon, Item item, boolean npc)
	{
		if (!hasItem(item) && !npc)
		{
			errorWindow.addMessage(" You don't have this item in your inventory to use! ");
			errorWindow.toFront();
			return selectedPokemon;
		}


		selectedPokemon = itemEffect(selectedPokemon,item.type,item.effect1,item.power1,item.healStatus);
		selectedPokemon = itemEffect(selectedPokemon,item.type,item.effect2,item.power2,item.healStatus);

		if (!itemCancel && !npc)
		decrementItem(item);

		return selectedPokemon;
	}