def METHOD_NAME(self) -> Optional[AbilityData]:
    if self._proto.ability_id == 0:
        return None
    if self._proto.ability_id not in self._game_data.abilities:
        return None
    return self._game_data.abilities[self._proto.ability_id]