public static int getStat(boolean player, int statNum, boolean crit) {
		if (PokemonUtil.isGen1() && statNum == STAT_SPCDEF)
			statNum = STAT_SPCATK;
		if (!crit)
			return Util.getMemoryWordBE((player ? curGb.pokemon.fightBattleMonStatsAddress : curGb.pokemon.fightEnemyMonStatsAddress) + 2*statNum);
		else {
			int add = player ? curGb.pokemon.fightBattleMonOriginalStatsAddress : curGb.pokemon.fightEnemyMonOriginalStatsAddress;
			if (PokemonUtil.isGen1())
				add += 0x2c * curGb.readMemory(player ? curGb.pokemon.fightBattleMonIndex : curGb.pokemon.fightEnemyMonIndex);
			return Util.getMemoryWordBE(add + 2*statNum);
		}
	}