AT the end of CCreatureHandler::loadLegacyData() the ability is not there for pikemen and unicorns but green dragons for EG, have abilities already loaded… Is it added somewhere later?
krs, loadLegacyData() loads data from h3 txt’s including some of abilities. Remaining part is loaded from VCMI json configs.
To get complete data you need to merge data from loadLegacy with one of vcmi config files. This is done inside mod handler and then passed to CCreatureHandler::load(). This is where you can get access to compete data including all abilities.